We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d73c7 commit fedb446Copy full SHA for fedb446
src/CLI/CLI.php
@@ -87,7 +87,7 @@ class CLI
87
*
88
* @throws Exception
89
*/
90
- public function __construct(Adapter $adapter = null, array $args = [])
+ public function __construct(?Adapter $adapter = null, array $args = [])
91
{
92
if (\php_sapi_name() !== 'cli') {
93
throw new Exception('CLI tasks can only work from the command line');
0 commit comments