Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PHPCR/Shell/Config/ConfigManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ConfigManager
* @param QuestionHelper|DialogHelper $questionHelper
* @param Filesystem $filesystem
*/
public function __construct($questionHelper, Filesystem $filesystem = null)
public function __construct($questionHelper, ?Filesystem $filesystem = null)
{
if (null === $filesystem) {
$filesystem = new Filesystem();
Expand Down Expand Up @@ -174,7 +174,7 @@ public function getPhpcrshConfig()
/**
* Initialize a configuration files.
*/
public function initConfig(OutputInterface $output = null)
public function initConfig(?OutputInterface $output = null)
{
$log = function ($message) use ($output) {
if ($output) {
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Config/ProfileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ProfileLoader
protected $config;
protected $filesystem;

public function __construct(ConfigManager $config, Filesystem $filesystem = null)
public function __construct(ConfigManager $config, ?Filesystem $filesystem = null)
{
$this->config = $config;
$this->filesystem = $filesystem ?: new Filesystem();
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BaseCommand extends Command implements ContainerAwareInterface
*/
private $container;

public function setContainer(ContainerInterface $container = null): void
public function setContainer(?ContainerInterface $container = null): void
{
$this->container = $container;
}
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Test/ApplicationTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ApplicationTester
*
* @param Application $application An Application instance to test.
*/
public function __construct(Application $application, ShellApplication $shellApplication = null)
public function __construct(Application $application, ?ShellApplication $shellApplication = null)
{
$this->output = new StreamOutput(fopen('php://memory', 'w', false));

Expand Down
Loading