Skip to content

Commit

Permalink
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_…
Browse files Browse the repository at this point in the history
…null_value
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
1 parent 4659b55 commit a32a623
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GenericRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __construct(array $options = [])
/**
* {@inheritdoc}
*/
public function getResolver(callable $callable, \ReflectionFunction $reflector = null): ResolverInterface
public function getResolver(callable $callable, ?\ReflectionFunction $reflector = null): ResolverInterface
{
if (!$callable instanceof \Closure) {
$callable = \Closure::fromCallable($callable);
Expand Down
2 changes: 1 addition & 1 deletion Runner/Symfony/ConsoleApplicationRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ConsoleApplicationRunner implements RunnerInterface
private $input;
private $output;

public function __construct(Application $application, ?string $defaultEnv, InputInterface $input, OutputInterface $output = null)
public function __construct(Application $application, ?string $defaultEnv, InputInterface $input, ?OutputInterface $output = null)
{
$this->application = $application;
$this->defaultEnv = $defaultEnv;
Expand Down
2 changes: 1 addition & 1 deletion RuntimeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface RuntimeInterface
*
* The callable itself should return an object that represents the application to pass to the getRunner() method.
*/
public function getResolver(callable $callable, \ReflectionFunction $reflector = null): ResolverInterface;
public function getResolver(callable $callable, ?\ReflectionFunction $reflector = null): ResolverInterface;

/**
* Returns a callable that knows how to run the passed object and that returns its exit status as int.
Expand Down

0 comments on commit a32a623

Please sign in to comment.