Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 929d5f4

Browse filesBrowse 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
Copy full SHA for 929d5f4

File tree

1 file changed

+1
-5
lines changed
Filter options

1 file changed

+1
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Loader/PhpFileLoader.php
+1-5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.