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
126
126
return true ;
127
127
} catch (MissingResourceException ) {
128
128
static $ cache ;
129
- if (null === $ cache ) {
130
- $ cache = array_flip (self ::getAlpha3Codes ());
131
- }
129
+ $ cache ??= array_flip (self ::getAlpha3Codes ());
132
130
133
131
return isset ($ cache [$ language ]);
134
132
}
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ class IntlTestHelper
32
32
*/
33
33
public static function requireIntl (TestCase $ testCase , string $ minimumIcuVersion = null )
34
34
{
35
- if (null === $ minimumIcuVersion ) {
36
- $ minimumIcuVersion = Intl::getIcuStubVersion ();
37
- }
35
+ $ minimumIcuVersion ??= Intl::getIcuStubVersion ();
38
36
39
37
// We only run tests if the version is *one specific version*.
40
38
// This condition is satisfied if
You can’t perform that action at this time.
0 commit comments