From 5eeaa199ef47a580336de75d813a4a22967531c6 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Sun, 7 Jul 2024 14:33:40 +0200 Subject: [PATCH] Fix tests for PHP 8.3 --- tests/Routing/RouteTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Routing/RouteTest.php b/tests/Routing/RouteTest.php index 3022613f4..9198df15b 100644 --- a/tests/Routing/RouteTest.php +++ b/tests/Routing/RouteTest.php @@ -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 @@ -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