8000 minor #48051 [Translation] cs fix (nicolas-grekas) · symfony/symfony@929d5f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 929d5f4

Browse files
committed
minor #48051 [Translation] cs fix (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [Translation] cs fix | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 3afdf39 [Translation] cs fix
2 parents c1311c1 + 3afdf39 commit 929d5f4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/Translation/Loader/PhpFileLoader.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ protected function loadResource(string $resource): array
3030
return require $resource;
3131
}
3232

33-
if (isset(self::$cache[$resource])) {
34-
return self::$cache[$resource];
35-
}
36-
37-
return self::$cache[$resource] = require $resource;
33+
return self::$cache[$resource] ??= require $resource;
3834
}
3935
}

0 commit comments

Comments
 (0)
0