We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260765c commit 9bc1b14Copy full SHA for 9bc1b14
tests/BasicStringEnumTest.php
@@ -157,7 +157,7 @@ public function testTryFromUnexpectedFloatTypeError(): void
157
$type = PHP_VERSION_ID >= 80000 ? 'string|int' : 'string';
158
159
$this->expectException('TypeError');
160
- $this->expectExceptionMessage("{$class}::tryFrom(): Argument #1 (\$value) must be of type {$class}, float given");
+ $this->expectExceptionMessage("{$class}::tryFrom(): Argument #1 (\$value) must be of type {$type}, float given");
161
162
/** @phpstan-ignore-next-line */
163
BasicStringEnum::tryFrom(1.1);
0 commit comments