Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291607

Fix getExpectedUnauthorizedEntityAccessCacheability PHPStan-0 issues

$
0
0

Problem/Motivation

PHPStan baseline is currently skipping multiple Call to an undefined method errors, #3291519: [Meta] Fix 'Call to an undefined method' PHPStan L0 errors.

Proposed resolution

Fix the error about getExpectedUnauthorizedEntityAccessCacheability.

'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileUploadJsonBasicAuthTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#',
        'count' => 1,
        'path' => __DIR__ . '/modules/file/tests/src/Functional/FileUploadJsonBasicAuthTest.php',
--
        'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileUploadJsonCookieTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#',
        'count' => 1,
        'path' => __DIR__ . '/modules/file/tests/src/Functional/FileUploadJsonCookieTest.php',

        'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserRegistrationRestTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#',
        'count' => 1,
        'path' => __DIR__ . '/modules/user/tests/src/Functional/UserRegistrationRestTest.php',

Viewing all articles
Browse latest Browse all 291607

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>