Skip to content

Commit 9bc1b14

Browse files
committed
fix tests for PHP 8.0
1 parent 260765c commit 9bc1b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/BasicStringEnumTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function testTryFromUnexpectedFloatTypeError(): void
157157
$type = PHP_VERSION_ID >= 80000 ? 'string|int' : 'string';
158158

159159
$this->expectException('TypeError');
160-
$this->expectExceptionMessage("{$class}::tryFrom(): Argument #1 (\$value) must be of type {$class}, float given");
160+
$this->expectExceptionMessage("{$class}::tryFrom(): Argument #1 (\$value) must be of type {$type}, float given");
161161

162162
/** @phpstan-ignore-next-line */
163163
BasicStringEnum::tryFrom(1.1);

0 commit comments

Comments
 (0)