8000 minor #40730 [Notifier] [CS] [5.x] Replace easy occurrences of ?: wit… · symfony/symfony@9966e98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9966e98

Browse files
committed
minor #40730 [Notifier] [CS] [5.x] Replace easy occurrences of ?: with ?? (fancyweb)
This PR was merged into the 5.3-dev branch. Discussion ---------- [Notifier] [CS] [5.x] Replace easy occurrences of ?: with ?? | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - #40729 on 5.x Commits ------- 726075c [CS] [5.x] Replace easy occurrences of ?: with ??
2 parents a6b589e + 726075c commit 9966e98

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class AllMySmsTransportTest extends TransportTestCase
2626
*/
2727
public function createTransport(?HttpClientInterface $client = null, string $from = null): TransportInterface
2828
{
29-
return new AllMySmsTransport('login', 'apiKey', $from, $client ?: $this->createMock(HttpClientInterface::class));
29+
return new AllMySmsTransport('login', 'apiKey', $from, $client ?? $this->createMock(HttpClientInterface::class));
3030
}
3131

3232
public function toStringProvider(): iterable

src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class GatewayApiTransportTest extends TransportTestCase
2424
*/
2525
public function createTransport(?HttpClientInterface $client = null): TransportInterface
2626
{
27-
return new GatewayApiTransport('authtoken', 'Symfony', $client ?: $this->createMock(HttpClientInterface::class));
27+
return new GatewayApiTransport('authtoken', 'Symfony', $client ?? $this->createMock(HttpClientInterface::class));
2828
}
2929

3030
public function toStringProvider(): iterable

src/Symfony/Component/Notifier/Bridge/Gitter/Tests/GitterTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class GitterTransportTest extends TransportTestCase
2626
{
2727
public function createTransport(?HttpClientInterface $client = null): TransportInterface
2828
{
29-
return (new GitterTransport('token', '5539a3ee5etest0d3255bfef', $client ?: $this->createMock(HttpClientInterface::class)))->setHost('api.gitter.im');
29+
return (new GitterTransport('token', '5539a3ee5etest0d3255bfef', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('api.gitter.im');
3030
}
3131

3232
public function toStringProvider(): iterable

src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class IqsmsTransportTest extends TransportTestCase
2626
*/
2727
public function createTransport(?HttpClientInterface $client = null): TransportInterface
2828
{
29-
return new IqsmsTransport('login', 'password', 'sender', $client ?: $this->createMock(HttpClientInterface::class));
29+
return new IqsmsTransport('login', 'password', 'sender', $client ?? $this->createMock(HttpClientInterface::class));
3030
}
3131

3232
public function toStringProvider(): iterable

src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class LightSmsTransportTest extends TransportTestCase
2626
*/
2727
public function createTransport(?HttpClientInterface $client = null): TransportInterface
2828
{
29-
return new LightSmsTransport('accountSid', 'authToken', 'from', $client ?: $this->createMock(HttpClientInterface::class));
29+
return new LightSmsTransport('accountSid', 'authToken', 'from', $client ?? $this->createMock(HttpClientInterface::class));
3030
}
3131

3232
public function toStringProvider(): iterable

src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class OctopushTransportTest extends TransportTestCase
2626
*/
2727
public function createTransport(?HttpClientInterface $client = null): TransportInterface
2828
{
29-
return new OctopushTransport('userLogin', 'apiKey', 'from', 'type', $client ?: $this->createMock(HttpClientInterface::class));
29+
return new OctopushTransport('userLogin', 'apiKey', 'from', 'type', $client ?? $this->createMock(HttpClientInterface::class));
3030
}
3131

3232
public function toStringProvider(): iterable

src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class SpotHitTransportTest extends TransportTestCase
2626
*/
2727
public function createTransport(?HttpClientInterface $client = null): TransportInterface
2828
{
29-
return (new SpotHitTransport('api_token', 'MyCompany', $client ?: $this->createMock(HttpClientInterface::class)))->setHost('host.test');
29+
return (new SpotHitTransport(< 49A2 span class="pl-s">'api_token', 'MyCompany', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3030
}
3131

3232
public function toStringProvider(): iterable

0 commit comments

Comments
 (0)
0