Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 13, 2023
1 parent 0a277da commit 5ed941b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PhpGenerator/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function fromClassReflection(
): ClassLike
{
if ($withBodies && $from->isAnonymous()) {
throw new Nette\NotSupportedException('The $withBodies parameter cannot be used for anonymous functions.');
throw new Nette\NotSupportedException('The $withBodies parameter cannot be used for anonymous classes.');
}

$enumIface = null;
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpGenerator/ClassType.from.bodies.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Assert::exception(
}
}, withBodies: true),
Nette\NotSupportedException::class,
'The $withBodies parameter cannot be used for anonymous functions.',
'The $withBodies parameter cannot be used for anonymous classes.',
);


Expand Down

0 comments on commit 5ed941b

Please sign in to comment.