Loading core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ protected function setUpAuthorization($method) { /** * {@inheritdoc} */ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) {} protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void {} /** * {@inheritdoc} Loading @@ -124,7 +124,7 @@ protected function assertNormalizationEdgeCases($method, Url $url, array $reques /** * {@inheritdoc} */ protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) {} protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options): void {} /** * {@inheritdoc} Loading core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php +4 −3 Original line number Diff line number Diff line Loading @@ -33,9 +33,10 @@ protected function getAuthenticationRequestOptions($method): array { /** * {@inheritdoc} */ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) { protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void { if ($method !== 'GET') { return $this->assertResourceErrorResponse(401, 'No authentication credentials provided.', $response); $this->assertResourceErrorResponse(401, 'No authentication credentials provided.', $response); return; } $expected_page_cache_header_value = $method === 'GET' ? 'MISS' : FALSE; Loading @@ -58,7 +59,7 @@ protected function assertResponseWhenMissingAuthentication($method, ResponseInte /** * {@inheritdoc} */ protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) { protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options): void { } } Loading
core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ protected function setUpAuthorization($method) { /** * {@inheritdoc} */ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) {} protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void {} /** * {@inheritdoc} Loading @@ -124,7 +124,7 @@ protected function assertNormalizationEdgeCases($method, Url $url, array $reques /** * {@inheritdoc} */ protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) {} protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options): void {} /** * {@inheritdoc} Loading
core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php +4 −3 Original line number Diff line number Diff line Loading @@ -33,9 +33,10 @@ protected function getAuthenticationRequestOptions($method): array { /** * {@inheritdoc} */ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) { protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void { if ($method !== 'GET') { return $this->assertResourceErrorResponse(401, 'No authentication credentials provided.', $response); $this->assertResourceErrorResponse(401, 'No authentication credentials provided.', $response); return; } $expected_page_cache_header_value = $method === 'GET' ? 'MISS' : FALSE; Loading @@ -58,7 +59,7 @@ protected function assertResponseWhenMissingAuthentication($method, ResponseInte /** * {@inheritdoc} */ protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) { protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options): void { } }