From 234134d11660775d645cb2f6167daa755023be6c Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 19 Mar 2026 08:25:07 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/PHPCR/Shell/Config/ConfigManager.php | 4 ++-- src/PHPCR/Shell/Config/ProfileLoader.php | 2 +- src/PHPCR/Shell/Console/Command/BaseCommand.php | 2 +- src/PHPCR/Shell/Test/ApplicationTester.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PHPCR/Shell/Config/ConfigManager.php b/src/PHPCR/Shell/Config/ConfigManager.php index b74638f6..0ca4aa96 100644 --- a/src/PHPCR/Shell/Config/ConfigManager.php +++ b/src/PHPCR/Shell/Config/ConfigManager.php @@ -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(); @@ -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) { diff --git a/src/PHPCR/Shell/Config/ProfileLoader.php b/src/PHPCR/Shell/Config/ProfileLoader.php index a9802e20..869505e0 100644 --- a/src/PHPCR/Shell/Config/ProfileLoader.php +++ b/src/PHPCR/Shell/Config/ProfileLoader.php @@ -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(); diff --git a/src/PHPCR/Shell/Console/Command/BaseCommand.php b/src/PHPCR/Shell/Console/Command/BaseCommand.php index 3e43b994..8e67e75e 100644 --- a/src/PHPCR/Shell/Console/Command/BaseCommand.php +++ b/src/PHPCR/Shell/Console/Command/BaseCommand.php @@ -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; } diff --git a/src/PHPCR/Shell/Test/ApplicationTester.php b/src/PHPCR/Shell/Test/ApplicationTester.php index 2d508ea8..153b0baa 100644 --- a/src/PHPCR/Shell/Test/ApplicationTester.php +++ b/src/PHPCR/Shell/Test/ApplicationTester.php @@ -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));