Skip to content

Commit

Permalink
Make more nullable types explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 19, 2024
1 parent b8ff9a7 commit 1d0ef27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Transport
* @param HttpClientInterface|null $client
* @param LoggerInterface|null $logger
*/
public static function fromDsn(string $dsn/* , EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null, LoggerInterface $logger = null */): TransportInterface
public static function fromDsn(string $dsn/* , ?EventDispatcherInterface $dispatcher = null, ?HttpClientInterface $client = null, ?LoggerInterface $logger = null */): TransportInterface
{
$dispatcher = 2 <= \func_num_args() ? func_get_arg(1) : null;
$client = 3 <= \func_num_args() ? func_get_arg(2) : null;
Expand All @@ -79,7 +79,7 @@ public static function fromDsn(string $dsn/* , EventDispatcherInterface $dispatc
* @param HttpClientInterface|null $client
* @param LoggerInterface|null $logger
*/
public static function fromDsns(array $dsns/* , EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null, LoggerInterface $logger = null */): TransportInterface
public static function fromDsns(array $dsns/* , ?EventDispatcherInterface $dispatcher = null, ?HttpClientInterface $client = null, ?LoggerInterface $logger = null */): TransportInterface
{
$dispatcher = 2 <= \func_num_args() ? func_get_arg(1) : null;
$client = 3 <= \func_num_args() ? func_get_arg(2) : null;
Expand Down Expand Up @@ -183,7 +183,7 @@ public function fromDsnObject(Dsn $dsn): TransportInterface
*
* @return \Traversable<int, TransportFactoryInterface>
*/
public static function getDefaultFactories(/* EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null, LoggerInterface $logger = null */): iterable
public static function getDefaultFactories(/* ?EventDispatcherInterface $dispatcher = null, ?HttpClientInterface $client = null, ?LoggerInterface $logger = null */): iterable
{
$dispatcher = 1 <= \func_num_args() ? func_get_arg(0) : null;
$client = 2 <= \func_num_args() ? func_get_arg(1) : null;
Expand Down

0 comments on commit 1d0ef27

Please sign in to comment.