Loading core/phpstan-baseline.neon +0 −5 Original line number Diff line number Diff line Loading @@ -3353,11 +3353,6 @@ parameters: count: 1 path: tests/Drupal/Tests/Composer/ComposerTest.php - message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" count: 1 path: tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php - message: """ #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: Loading core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -309,12 +309,12 @@ public function testUpdateCacheDelete() { ]; // Set up mock expectation, on the second call the with the second argument // set to TRUE because we triggered a cache invalidation. $allow_invalid = [FALSE, TRUE]; $this->cacheBackend->expects($this->exactly(2)) ->method('get') ->withConsecutive( [$this->cid], [$this->cid, TRUE], ) ->with($this->cid, $this->callback(function ($value) use (&$allow_invalid) { return array_shift($allow_invalid) === $value; })) ->willReturn($cache); $this->collector->delete($key); Loading Loading
core/phpstan-baseline.neon +0 −5 Original line number Diff line number Diff line Loading @@ -3353,11 +3353,6 @@ parameters: count: 1 path: tests/Drupal/Tests/Composer/ComposerTest.php - message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" count: 1 path: tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php - message: """ #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: Loading
core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -309,12 +309,12 @@ public function testUpdateCacheDelete() { ]; // Set up mock expectation, on the second call the with the second argument // set to TRUE because we triggered a cache invalidation. $allow_invalid = [FALSE, TRUE]; $this->cacheBackend->expects($this->exactly(2)) ->method('get') ->withConsecutive( [$this->cid], [$this->cid, TRUE], ) ->with($this->cid, $this->callback(function ($value) use (&$allow_invalid) { return array_shift($allow_invalid) === $value; })) ->willReturn($cache); $this->collector->delete($key); Loading