Skip to content

Commit 3ad5af4

Browse files
committed
Fix return types for PHP 8.1
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent 0ec424e commit 3ad5af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Caster/CasterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function testAnonymousClass()
164164
, $c
165165
);
166166

167-
$c = eval('return new class implements \Countable { private $foo = "foo"; public function count() { return 0; } };');
167+
$c = eval('return new class implements \Countable { private $foo = "foo"; public function count(): int { return 0; } };');
168168

169169
$this->assertDumpMatchesFormat(
170170
<<<'EOTXT'

0 commit comments

Comments
 (0)