File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,7 @@ public static function alpha3CodeExists(string $language): bool
126126 return true ;
127127 } catch (MissingResourceException ) {
128128 static $ cache ;
129- if (null === $ cache ) {
130- $ cache = array_flip (self ::getAlpha3Codes ());
131- }
129+ $ cache ??= array_flip (self ::getAlpha3Codes ());
132130
133131 return isset ($ cache [$ language ]);
134132 }
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ class IntlTestHelper
3232 */
3333 public static function requireIntl (TestCase $ testCase , string $ minimumIcuVersion = null )
3434 {
35- if (null === $ minimumIcuVersion ) {
36- $ minimumIcuVersion = Intl::getIcuStubVersion ();
37- }
35+ $ minimumIcuVersion ??= Intl::getIcuStubVersion ();
3836
3937 // We only run tests if the version is *one specific version*.
4038 // This condition is satisfied if
You can’t perform that action at this time.
0 commit comments