Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d4f378

Browse filesBrowse files
CS fix
1 parent a55e14a commit 6d4f378
Copy full SHA for 6d4f378

File tree

Expand file treeCollapse file tree

72 files changed

+84
-84
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

72 files changed

+84
-84
lines changed

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function handleError($type, $msg, $file, $line, $context = [])
162162

163163
if ('legacy' === $group) {
164164
$this->deprecationGroups[$group]->addNotice();
165-
} else if ($deprecation->originatesFromAnObject()) {
165+
} elseif ($deprecation->originatesFromAnObject()) {
166166
$class = $deprecation->originatingClass();
167167
$method = $deprecation->originatingMethod();
168168
$this->deprecationGroups[$group]->addNoticeFromObject($msg, $class, $method);

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/annotations.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/annotations.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
->args([
3737
service('annotations.reader'),
3838
inline_service(DoctrineProvider::class)->args([
39-
inline_service(ArrayAdapter::class)
39+
inline_service(ArrayAdapter::class),
4040
]),
4141
abstract_arg('Debug-Flag'),
4242
])
@@ -70,7 +70,7 @@
7070

7171
->set('annotations.cache', DoctrineProvider::class)
7272
->args([
73-
service('annotations.cache_adapter')
73+
service('annotations.cache_adapter'),
7474
])
7575
->tag('container.hot_path')
7676

‎src/Symfony/Bundle/FrameworkBundle/Tests/Controller/AbstractControllerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Controller/AbstractControllerTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use Symfony\Component\HttpFoundation\StreamedResponse;
3737
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3838
use Symfony\Component\HttpKernel\HttpKernelInterface;
39+
use Symfony\Component\Routing\RouterInterface;
3940
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
4041
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
4142
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
@@ -44,7 +45,6 @@
4445
use Symfony\Component\Security\Core\User\User;
4546
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
4647
use Symfony\Component\Serializer\SerializerInterface;
47-
use Symfony\Component\Routing\RouterInterface;
4848
use Symfony\Component\WebLink\Link;
4949
use Twig\Environment;
5050

‎src/Symfony/Component/Console/Style/StyleInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Style/StyleInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function table(array $headers, array $rows);
8585
*
8686
* @return mixed
8787
*/
88-
public function ask(string $question, ?string $default = null, callable $validator = null);
88+
public function ask(string $question, string $default = null, callable $validator = null);
8989

9090
/**
9191
* Asks a question with the user input hidden.

‎src/Symfony/Component/Console/Style/SymfonyStyle.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Style/SymfonyStyle.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(InputInterface $input, OutputInterface $output)
5959
*
6060
* @param string|array $messages The message to write in the block
6161
*/
62-
public function block($messages, ?string $type = null, ?string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = true)
62+
public function block($messages, string $type = null, string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = true)
6363
{
6464
$messages = \is_array($messages) ? array_values($messages) : [$messages];
6565

@@ -264,7 +264,7 @@ public function definitionList(...$list)
264264
/**
265265
* {@inheritdoc}
266266
*/
267-
public function ask(string $question, ?string $default = null, $validator = null)
267+
public function ask(string $question, string $default = null, $validator = null)
268268
{
269269
$question = new Question($question, $default);
270270
$question->setValidator($validator);

‎src/Symfony/Component/DependencyInjection/Definition.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Definition.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getFactory()
135135
*
136136
* @throws InvalidArgumentException in case the decorated service id and the new decorated service id are equals
137137
*/
138-
public function setDecoratedService(?string $id, ?string $renamedId = null, int $priority = 0, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
138+
public function setDecoratedService(?string $id, string $renamedId = null, int $priority = 0, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
139139
{
140140
if ($renamedId && $id === $renamedId) {
141141
throw new InvalidArgumentException(sprintf('The decorated service inner name for "%s" must be different than the service name itself.', $id));

‎src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function testNameProposal()
239239
/**
240240
* @dataProvider getLintData
241241
*/
242-
public function testLint($expression, $names, ?string $exception = null)
242+
public function testLint($expression, $names, string $exception = null)
243243
{
244244
if ($exception) {
245245
$this->expectException(SyntaxError::class);

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class IntegerToLocalizedStringTransformer extends NumberToLocalizedStringTransfo
2828
* @param int $roundingMode One of the ROUND_ constants in this class
2929
* @param string|null $locale locale used for transforming
3030
*/
31-
public function __construct(?bool $grouping = false, ?int $roundingMode = \NumberFormatter::ROUND_DOWN, ?string $locale = null)
31+
public function __construct(?bool $grouping = false, ?int $roundingMode = \NumberFormatter::ROUND_DOWN, string $locale = null)
3232
{
3333
parent::__construct(0, $grouping, $roundingMode, $locale);
3434
}

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PercentToLocalizedStringTransformer implements DataTransformerInterface
4646
*
4747
* @throws UnexpectedTypeException if the given value of type is unknown
4848
*/
49-
public function __construct(int $scale = null, string $type = null, ?int $roundingMode = null, bool $html5Format = false)
49+
public function __construct(int $scale = null, string $type = null, int $roundingMode = null, bool $html5Format = false)
5050
{
5151
if (null === $scale) {
5252
$scale = 0;

‎src/Symfony/Component/HttpClient/Internal/AmpClientState.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Internal/AmpClientState.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private function getClient(array $options): array
149149
public $uri;
150150
public $handle;
151151

152-
public function connect(string $uri, ?ConnectContext $context = null, ?CancellationToken $token = null): Promise
152+
public function connect(string $uri, ConnectContext $context = null, CancellationToken $token = null): Promise
153153
{
154154
$result = $this->connector->connect($this->uri ?? $uri, $context, $token);
155155
$result->onResolve(function ($e, $socket) {

‎src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadata.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadata.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ArgumentMetadata
2828
private $isNullable;
2929
private $attribute;
3030

31-
public function __construct(string $name, ?string $type, bool $isVariadic, bool $hasDefaultValue, $defaultValue, bool $isNullable = false, ?ArgumentInterface $attribute = null)
31+
public function __construct(string $name, ?string $type, bool $isVariadic, bool $hasDefaultValue, $defaultValue, bool $isNullable = false, ArgumentInterface $attribute = null)
3232
{
3333
$this->name = $name;
3434
$this->type = $type;

‎src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RequestDataCollector extends DataCollector implements EventSubscriberInter
3434
private $sessionUsages = [];
3535
private $requestStack;
3636

37-
public function __construct(?RequestStack $requestStack = null)
37+
public function __construct(RequestStack $requestStack = null)
3838
{
3939
$this->controllers = new \SplObjectStorage();
4040
$this->requestStack = $requestStack;

‎src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function __construct(?string $locale, ?int $datetype, ?int $timetype, $ti
172172
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed
173173
* @throws MethodArgumentValueNotImplementedException When $calendar different than GREGORIAN is passed
174174
*/
175-
public static function create(?string $locale, ?int $datetype, ?int $timetype, $timezone = null, int $calendar = self::GREGORIAN, ?string $pattern = null)
175+
public static function create(?string $locale, ?int $datetype, ?int $timetype, $timezone = null, int $calendar = self::GREGORIAN, string $pattern = null)
176176
{
177177
return new static($locale, $datetype, $timetype, $timezone, $calendar, $pattern);
178178
}

‎src/Symfony/Component/Intl/Util/IcuVersion.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Util/IcuVersion.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class IcuVersion
5050
*
5151
* @see normalize()
5252
*/
53-
public static function compare(string $version1, string $version2, string $operator, ?int $precision = null)
53+
public static function compare(string $version1, string $version2, string $operator, int $precision = null)
5454
{
5555
$version1 = self::normalize($version1, $precision);
5656
$version2 = self::normalize($version2, $precision);

‎src/Symfony/Component/Intl/Util/Version.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Util/Version.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Version
4040
*
4141
* @see normalize()
4242
*/
43-
public static function compare(string $version1, string $version2, string $operator, ?int $precision = null)
43+
public static function compare(string $version1, string $version2, string $operator, int $precision = null)
4444
{
4545
$version1 = self::normalize($version1, $precision);
4646
$version2 = self::normalize($version2, $precision);

‎src/Symfony/Component/Ldap/Security/LdapBadge.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Ldap/Security/LdapBadge.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LdapBadge implements BadgeInterface
3232
private $searchPassword;
3333
private $queryString;
3434

35-
public function __construct(string $ldapServiceId, string $dnString = '{username}', string $searchDn = '', string $searchPassword = '', ?string $queryString = null)
35+
public function __construct(string $ldapServiceId, string $dnString = '{username}', string $searchDn = '', string $searchPassword = '', string $queryString = null)
3636
{
3737
$this->ldapServiceId = $ldapServiceId;
3838
$this->dnString = $dnString;

‎src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueApiTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueApiTransport.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class SendinblueApiTransport extends AbstractApiTransport
3232
{
3333
private $key;
3434

35-
public function __construct(string $key, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null, ?LoggerInterface $logger = null)
35+
public function __construct(string $key, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
3636
{
3737
$this->key = $key;
3838

‎src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueSmtpTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueSmtpTransport.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
final class SendinblueSmtpTransport extends EsmtpTransport
2222
{
23-
public function __construct(string $username, string $password, ?EventDispatcherInterface $dispatcher = null, ?LoggerInterface $logger = null)
23+
public function __construct(string $username, string $password, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
2424
{
2525
parent::__construct('smtp-relay.sendinblue.com', 465, true, $dispatcher, $logger);
2626

‎src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsFifoStamp.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsFifoStamp.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class AmazonSqsFifoStamp implements NonSendableStampInterface
1919

2020
private $messageDeduplicationId;
2121

22-
public function __construct(?string $messageGroupId = null, ?string $messageDeduplicationId = null)
22+
public function __construct(string $messageGroupId = null, string $messageDeduplicationId = null)
2323
{
2424
$this->messageGroupId = $messageGroupId;
2525
$this->messageDeduplicationId = $messageDeduplicationId;

‎src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function getMessageCount(): int
306306
return (int) ($attributes[QueueAttributeName::APPROXIMATE_NUMBER_OF_MESSAGES] ?? 0);
307307
}
308308

309-
public function send(string $body, array $headers, int $delay = 0, ?string $messageGroupId = null, ?string $messageDeduplicationId = null): void
309+
public function send(string $body, array $headers, int $delay = 0, string $messageGroupId = null, string $messageDeduplicationId = null): void
310310
{
311311
if ($this->configuration['auto_setup']) {
312312
$this->setup();

‎src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdReceiver.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdReceiver.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BeanstalkdReceiver implements ReceiverInterface, MessageCountAwareInterfac
2727
private $connection;
2828
private $serializer;
2929

30-
public function __construct(Connection $connection, ?SerializerInterface $serializer = null)
30+
public function __construct(Connection $connection, SerializerInterface $serializer = null)
3131
{
3232
$this->connection = $connection;
3333
$this->serializer = $serializer ?? new PhpSerializer();

‎src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdSender.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdSender.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BeanstalkdSender implements SenderInterface
2525
private $connection;
2626
private $serializer;
2727

28-
public function __construct(Connection $connection, ?SerializerInterface $serializer = null)
28+
public function __construct(Connection $connection, SerializerInterface $serializer = null)
2929
{
3030
$this->connection = $connection;
3131
$this->serializer = $serializer ?? new PhpSerializer();

‎src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Beanstalkd/Transport/BeanstalkdTransport.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BeanstalkdTransport implements TransportInterface, MessageCountAwareInterf
2727
private $receiver;
2828
private $sender;
2929

30-
public function __construct(Connection $connection, ?SerializerInterface $serializer = null)
30+
public function __construct(Connection $connection, SerializerInterface $serializer = null)
3131
{
3232
$this->connection = $connection;
3333
$this->serializer = $serializer ?? new PhpSerializer();

‎src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class DiscordTransportTest extends TransportTestCase
2828
/**
2929
* @return DiscordTransport
3030
*/
31-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
31+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3232
{
3333
return (new DiscordTransport('testToken', 'testWebhookId', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3434
}

‎src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class EsendexTransportTest extends TransportTestCase
2727
/**
2828
* @return EsendexTransport
2929
*/
30-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
30+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3131
{
3232
return (new EsendexTransport('testToken', 'testAccountReference', 'testFrom', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3333
}

‎src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class FirebaseTransportTest extends TransportTestCase
2727
/**
2828
* @return FirebaseTransport
2929
*/
30-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
30+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3131
{
3232
return new FirebaseTransport('username:password', $client ?? $this->createMock(HttpClientInterface::class));
3333
}

‎src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class FreeMobileTransportTest extends TransportTestCase
2424
/**
2525
* @return FreeMobileTransport
2626
*/
27-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
27+
public function createTransport(HttpClientInterface $client = null): TransportInterface
2828
{
2929
return new FreeMobileTransport('login', 'pass', '0611223344', $client ?? $this->createMock(HttpClientInterface::class));
3030
}

‎src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class GoogleChatTransportTest extends TestCase
3131
/**
3232
* @return GoogleChatTransport
3333
*/
34-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
34+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3535
{
3636
return new GoogleChatTransport('My-Space', 'theAccessKey', 'theAccessToken=', $client ?? $this->createMock(HttpClientInterface::class));
3737
}

‎src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class InfobipTransportTest extends TransportTestCase
2424
/**
2525
* @return InfobipTransport
2626
*/
27-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
27+
public function createTransport(HttpClientInterface $client = null): TransportInterface
2828
{
2929
return (new InfobipTransport('authtoken', '0611223344', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3030
}

‎src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class LinkedInTransportTest extends TransportTestCase
2121
/**
2222
* @return LinkedInTransport
2323
*/
24-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
24+
public function createTransport(HttpClientInterface $client = null): TransportInterface
2525
{
2626
return (new LinkedInTransport('AuthToken', 'AccountId', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
2727
}

‎src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class MattermostTransportTest extends TransportTestCase
2727
/**
2828
* @return MattermostTransport
2929
*/
30-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
30+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3131
{
3232
return (new MattermostTransport('testAccessToken', 'testChannel', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3333
}

‎src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class MobytTransportTest extends TransportTestCase
2828
/**
2929
* @return MobytTransport
3030
*/
31-
public function createTransport(?HttpClientInterface $client = null, string $messageType = MobytOptions::MESSAGE_TYPE_QUALITY_LOW): TransportInterface
31+
public function createTransport(HttpClientInterface $client = null, string $messageType = MobytOptions::MESSAGE_TYPE_QUALITY_LOW): TransportInterface
3232
{
3333
return (new MobytTransport('accountSid', 'authToken', 'from', $messageType, $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3434
}

‎src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/NexmoTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/NexmoTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class NexmoTransportTest extends TransportTestCase
2424
/**
2525
* @return NexmoTransport
2626
*/
27-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
27+
public function createTransport(HttpClientInterface $client = null): TransportInterface
2828
{
2929
return new NexmoTransport('apiKey', 'apiSecret', 'sender', $client ?? $this->createMock(HttpClientInterface::class));
3030
}

‎src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class OvhCloudTransportTest extends TransportTestCase
2626
/**
2727
* @return OvhCloudTransport
2828
*/
29-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
29+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3030
{
3131
return new OvhCloudTransport('applicationKey', 'applicationSecret', 'consumerKey', 'serviceName', $client ?? $this->createMock(HttpClientInterface::class));
3232
}

‎src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class RocketChatTransportTest extends TransportTestCase
2727
/**
2828
* @return RocketChatTransport
2929
*/
30-
public function createTransport(?HttpClientInterface $client = null, string $channel = null): TransportInterface
30+
public function createTransport(HttpClientInterface $client = null, string $channel = null): TransportInterface
3131
{
3232
return new RocketChatTransport('testAccessToken', $channel, $client ?? $this->createMock(HttpClientInterface::class));
3333
}

‎src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class SendinblueTransportTest extends TransportTestCase
2727
/**
2828
* @return SendinblueTransport
2929
*/
30-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
30+
public function createTransport(HttpClientInterface $client = null): TransportInterface
3131
{
3232
return (new SendinblueTransport('api-key', '0611223344', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
3333
}

‎src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class SinchTransportTest extends TransportTestCase
2424
/**
2525
* @return SinchTransport
2626
*/
27-
public function createTransport(?HttpClientInterface $client = null): TransportInterface
27+
public function createTransport(HttpClientInterface $client = null): TransportInterface
2828
{
2929
return new SinchTransport('accountSid', 'authToken', 'sender', $client ?? $this->createMock(HttpClientInterface::class));
3030
}

‎src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackOptionsTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackOptionsTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class SlackOptionsTest extends TestCase
2828
* @dataProvider toArrayProvider
2929
* @dataProvider toArraySimpleOptionsProvider
3030
*/
31-
public function testToArray(array $options, ?array $expected = null)
31+
public function testToArray(array $options, array $expected = null)
3232
{
3333
$this->assertSame($expected ?? $options, (new SlackOptions($options))->toArray());
3434
}

‎src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class SlackTransportTest extends TransportTestCase
3131
/**
3232
* @return SlackTransport
3333
*/
34-
public function createTransport(?HttpClientInterface $client = null, string $channel = null): TransportInterface
34+
public function createTransport(HttpClientInterface $client = null, string $channel = null): TransportInterface
3535
{
3636
return new SlackTransport('testToken', $channel, $client ?? $this->createMock(HttpClientInterface::class));
3737
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.