From f94b7dcff42ea852ae6f83cb462898706f22f239 Mon Sep 17 00:00:00 2001 From: Sztig Date: Mon, 11 May 2026 17:18:52 +0200 Subject: [PATCH 1/2] fixed incorrect mapping --- src/bundle/Resources/config/services.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/config/services.yml b/src/bundle/Resources/config/services.yml index db3d13bc6..6176ebedf 100644 --- a/src/bundle/Resources/config/services.yml +++ b/src/bundle/Resources/config/services.yml @@ -422,7 +422,7 @@ services: arguments: $parsingDispatcher: '@Ibexa\Contracts\Rest\Input\ParsingDispatcher' - Ibexa\Contracts\Rest\Output\ValueObjectVisitorResolverInterface: '@Ibexa\Contracts\Rest\Output\ValueObjectVisitor' + Ibexa\Contracts\Rest\Output\ValueObjectVisitorResolverInterface: '@Ibexa\Contracts\Rest\Output\ValueObjectVisitorResolver' Ibexa\Contracts\Rest\Output\ValueObjectVisitorResolver: ~ From 066af68d53f3f9df253244c11de64dd929dd29bf Mon Sep 17 00:00:00 2001 From: Sztig Date: Mon, 8 Jun 2026 09:33:16 +0200 Subject: [PATCH 2/2] [PHPStan] fixed json_decode parameters --- tests/bundle/Functional/SessionTest.php | 6 +++--- tests/bundle/Functional/TestCase.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/bundle/Functional/SessionTest.php b/tests/bundle/Functional/SessionTest.php index d0e397a03..6c29809ee 100644 --- a/tests/bundle/Functional/SessionTest.php +++ b/tests/bundle/Functional/SessionTest.php @@ -160,7 +160,7 @@ public function testDeletedSessionCookieCannotReauthenticate(): void ); $currentSessionResponse = $this->sendHttpRequest($currentSessionRequest); self::assertHttpResponseCodeEquals($currentSessionResponse, 200); - $authenticatedData = json_decode($currentSessionResponse->getBody()->getContents(), true, JSON_THROW_ON_ERROR); + $authenticatedData = json_decode($currentSessionResponse->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); $authenticatedUserHref = $authenticatedData['Session']['User']['_href']; // Logout @@ -179,7 +179,7 @@ public function testDeletedSessionCookieCannotReauthenticate(): void ) ); - $reusedData = json_decode($reusedResponse->getBody()->getContents(), true, JSON_THROW_ON_ERROR); + $reusedData = json_decode($reusedResponse->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); self::assertNotEquals( $authenticatedUserHref, $reusedData['Session']['User']['_href'], @@ -244,7 +244,7 @@ public function testCheckSession(): void $this->assertHttpResponseCodeEquals($response, 200); $contents = $response->getBody()->getContents(); - $data = json_decode($contents, true, JSON_THROW_ON_ERROR); + $data = json_decode($contents, true, 512, JSON_THROW_ON_ERROR); self::assertArrayHasKey('Session', $data); } diff --git a/tests/bundle/Functional/TestCase.php b/tests/bundle/Functional/TestCase.php index 68b1a8137..dd284e14a 100644 --- a/tests/bundle/Functional/TestCase.php +++ b/tests/bundle/Functional/TestCase.php @@ -352,7 +352,7 @@ protected function login(): \stdClass $response = $this->sendHttpRequest($request); self::assertHttpResponseCodeEquals($response, 201); - return json_decode($response->getBody()->getContents(), false, JSON_THROW_ON_ERROR)->Session; + return json_decode($response->getBody()->getContents(), false, 512, JSON_THROW_ON_ERROR)->Session; } /**