Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jul 10, 2024
1 parent 7f3d22d commit 5bfd5ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Generator/GenerateModifiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function run(Registry $registry): Registry
protected function register(Registry $registry, Entity $entity): void
{
$role = $entity->getRole();

assert($role !== null);
foreach ($entity->getSchemaModifiers() as $modifier) {
\assert($modifier instanceof SchemaModifierInterface);
try {
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/RenderModifiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function run(Registry $registry): Registry
protected function register(Registry $registry, Entity $entity): void
{
$role = $entity->getRole();

assert($role !== null);
foreach ($entity->getSchemaModifiers() as $modifier) {
\assert($modifier instanceof SchemaModifierInterface);
try {
Expand Down

0 comments on commit 5bfd5ad

Please sign in to comment.