mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Added nullsafe operator to simplify conditions
This commit is contained in:
@@ -80,7 +80,7 @@ class VisitsStatsHelperTest extends TestCase
|
||||
{
|
||||
$shortCode = '123ABC';
|
||||
$identifier = ShortUrlIdentifier::fromShortCodeAndDomain($shortCode);
|
||||
$spec = $apiKey === null ? null : $apiKey->spec();
|
||||
$spec = $apiKey?->spec();
|
||||
|
||||
$repo = $this->prophesize(ShortUrlRepositoryInterface::class);
|
||||
$count = $repo->shortCodeIsInUse($identifier, $spec)->willReturn(
|
||||
|
||||
Reference in New Issue
Block a user