8000 cs · symfony/symfony@63f6f4d · GitHub
[go: up one dir, main page]

Skip to content

Commit 63f6f4d

Browse files
committed
cs
1 parent caf34e9 commit 63f6f4d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Doctrine\Common\Annotations\Reader;
1717
use Psr\Cache\CacheItemPoolInterface;
1818
use Symfony\Component\Cache\Adapter\ArrayAdapter;
19-
use Symfony\Component\Cache\Adapter\NullAdapter;
2019
use Symfony\Component\Cache\Adapter\PhpArrayAdapter;
2120
use Symfony\Component\Cache\DoctrineProvider;
2221

@@ -81,7 +80,7 @@ protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter)
8180
protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array $values)
8281
{
8382
$values = array_filter($values, function ($val) {
84-
return $val !== null;
83+
return null !== $val;
8584
});
8685

8786
// make sure we don't cache null values

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter)
8080
protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array $values)
8181
{
8282
$values = array_filter($values, function ($val) {
83-
return $val !== null;
83+
return null !== $val;
8484
});
8585

8686
// make sure we don't cache null values

0 commit comments

Comments
 (0)
0