Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Oct 3, 2024
1 parent 7aa7699 commit 7ed5efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Enums.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public static function handleStaticCall(string $enum, string $name, array $argum
public static function handleCall(object $case, string $name, array $arguments): mixed
{
return static::$onCall
? (static::$onCall)($case, $name, $arguments)
: throw new Error(sprintf('Call to undefined method %s::%s()', $case::class, $name));
? (static::$onCall)($case, $name, $arguments) /** @phpstan-ignore-next-line property.notFound */
: throw new Error(sprintf('Call to undefined method %s::%s->%s()', $case::class, $case->name, $name));
}

/**
Expand Down

0 comments on commit 7ed5efb

Please sign in to comment.