Skip to content

Commit 234134d

Browse files
committed
Apply fixes from StyleCI
1 parent 28fe226 commit 234134d

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/PHPCR/Shell/Config/ConfigManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ConfigManager
6060
* @param QuestionHelper|DialogHelper $questionHelper
6161
* @param Filesystem $filesystem
6262
*/
63-
public function __construct($questionHelper, Filesystem $filesystem = null)
63+
public function __construct($questionHelper, ?Filesystem $filesystem = null)
6464
{
6565
if (null === $filesystem) {
6666
$filesystem = new Filesystem();
@@ -174,7 +174,7 @@ public function getPhpcrshConfig()
174174
/**
175175
* Initialize a configuration files.
176176
*/
177-
public function initConfig(OutputInterface $output = null)
177+
public function initConfig(?OutputInterface $output = null)
178178
{
179179
$log = function ($message) use ($output) {
180180
if ($output) {

src/PHPCR/Shell/Config/ProfileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ProfileLoader
2424
protected $config;
2525
protected $filesystem;
2626

27-
public function __construct(ConfigManager $config, Filesystem $filesystem = null)
27+
public function __construct(ConfigManager $config, ?Filesystem $filesystem = null)
2828
{
2929
$this->config = $config;
3030
$this->filesystem = $filesystem ?: new Filesystem();

src/PHPCR/Shell/Console/Command/BaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BaseCommand extends Command implements ContainerAwareInterface
2323
*/
2424
private $container;
2525

26-
public function setContainer(ContainerInterface $container = null): void
26+
public function setContainer(?ContainerInterface $container = null): void
2727
{
2828
$this->container = $container;
2929
}

src/PHPCR/Shell/Test/ApplicationTester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ApplicationTester
4343
*
4444
* @param Application $application An Application instance to test.
4545
*/
46-
public function __construct(Application $application, ShellApplication $shellApplication = null)
46+
public function __construct(Application $application, ?ShellApplication $shellApplication = null)
4747
{
4848
$this->output = new StreamOutput(fopen('php://memory', 'w', false));
4949

0 commit comments

Comments
 (0)