Skip to content

Commit

Permalink
Fix tests for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jul 7, 2024
1 parent 9a07ee2 commit 5eeaa19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Routing/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function createRoute($methods = 'GET', string $pattern = '/', $callable =
->will(function ($args) use ($value) {
$value .= $args[0];
$this->__toString()->willReturn($value);
return 0;
return strlen($value);
});

$streamProphecy
Expand Down Expand Up @@ -821,7 +821,7 @@ public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsP
->will(function ($args) use ($value) {
$value .= $args[0];
$this->__toString()->willReturn($value);
return 0;
return strlen($value);
});

$streamProphecy
Expand Down

0 comments on commit 5eeaa19

Please sign in to comment.