Merge pull request #39226 from shdehnavi/null_coalescing_conversion_tests

pull/40360/head
Julius Härtl 9 months ago committed by GitHub
commit 938a558078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -168,7 +168,7 @@ class Dummy extends Backend implements \OCP\IUserBackend {
}
public function getDisplayName($uid) {
return isset($this->displayNames[$uid])? $this->displayNames[$uid]: $uid;
return $this->displayNames[$uid] ?? $uid;
}
/**

@ -30,7 +30,7 @@ class UtilCheckServerTest extends \Test\TestCase {
$config->expects($this->any())
->method('getValue')
->willReturnCallback(function ($key, $default) use ($systemOptions) {
return isset($systemOptions[$key]) ? $systemOptions[$key] : $default;
return $systemOptions[$key] ?? $default;
});
return $config;
}

Loading…
Cancel
Save