Loading core/.phpstan-baseline.php +0 −1746 File changed.Preview size limit exceeded, changes collapsed. Show changes core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php +3 −3 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ trait CookieResourceTestTrait { /** * {@inheritdoc} */ protected function initAuthentication() { protected function initAuthentication(): void { $user_login_url = Url::fromRoute('user.login.http') ->setRouteParameter('_format', static::$format); Loading Loading @@ -93,7 +93,7 @@ protected function getAuthenticationRequestOptions($method) { /** * {@inheritdoc} */ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) { protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void { // Requests needing cookie authentication but missing it results in a 403 // response. The cookie authentication mechanism sets no response message. // Hence, effectively, this is just the 403 response that one gets as the Loading Loading @@ -121,7 +121,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 { // X-CSRF-Token request header is unnecessary for safe and side effect-free // HTTP methods. No need for additional assertions. // @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html Loading Loading
core/.phpstan-baseline.php +0 −1746 File changed.Preview size limit exceeded, changes collapsed. Show changes
core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php +3 −3 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ trait CookieResourceTestTrait { /** * {@inheritdoc} */ protected function initAuthentication() { protected function initAuthentication(): void { $user_login_url = Url::fromRoute('user.login.http') ->setRouteParameter('_format', static::$format); Loading Loading @@ -93,7 +93,7 @@ protected function getAuthenticationRequestOptions($method) { /** * {@inheritdoc} */ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) { protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void { // Requests needing cookie authentication but missing it results in a 403 // response. The cookie authentication mechanism sets no response message. // Hence, effectively, this is just the 403 response that one gets as the Loading Loading @@ -121,7 +121,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 { // X-CSRF-Token request header is unnecessary for safe and side effect-free // HTTP methods. No need for additional assertions. // @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html Loading