@@ -57,7 +57,7 @@ class Cubex extends DependencyInjector implements LoggerAwareInterface
5757 */
5858 private $ _hasShutdown ;
5959
60- public function __construct ($ projectRoot , ClassLoader $ loader = null , $ global = true )
60+ public function __construct ($ projectRoot , ? ClassLoader $ loader = null , $ global = true )
6161 {
6262 $ this ->_projectRoot = $ projectRoot ;
6363 $ this ->_eventChannel = new Channel ('cubex ' );
@@ -72,7 +72,7 @@ public function __construct($projectRoot, ClassLoader $loader = null, $global =
7272 }
7373 }
7474
75- public static function withCustomContext (string $ ctxClass , $ projectRoot , ClassLoader $ loader = null , $ global = true )
75+ public static function withCustomContext (string $ ctxClass , $ projectRoot , ? ClassLoader $ loader = null , $ global = true )
7676 {
7777 $ c = new static ($ projectRoot , $ loader , $ global );
7878 $ c ->_contextClass = $ ctxClass ;
@@ -213,7 +213,7 @@ public static function fromContext(Context $ctx, $fallbackToGlobal = true)
213213 * @return int
214214 * @throws Exception
215215 */
216- public function cli (InputInterface $ input = null , OutputInterface $ output = null )
216+ public function cli (? InputInterface $ input = null , ? OutputInterface $ output = null )
217217 {
218218 $ input = $ input ?? new ArgvInput ();
219219 $ output = $ output ?? new ConsoleOutput ();
@@ -422,7 +422,7 @@ protected function _getSystemEnvironment()
422422 * @return bool true if shutdown has processed, false if shutdown has already been called.
423423 * @throws Exception
424424 */
425- public function shutdown (bool $ throwExceptions = null )
425+ public function shutdown (? bool $ throwExceptions = null )
426426 {
427427 if (!$ this ->_hasShutdown )
428428 {
0 commit comments