1 | <?php |
||
14 | final class Crap extends Application |
||
15 | { |
||
16 | const FILENAME = 'crap.json'; |
||
17 | |||
18 | /** |
||
19 | * Crap application version |
||
20 | * @var string |
||
21 | */ |
||
22 | const VERSION = '1.0.0'; |
||
23 | |||
24 | private static $logo = ' __________ ___ ____ |
||
25 | / ____/ __ \/ | / __ \ |
||
26 | / / / /_/ / /| | / /_/ / |
||
27 | / /___/ _, _/ ___ |/ ____/ |
||
28 | \____/_/ |_/_/ |_/_/ |
||
29 | '; |
||
30 | |||
31 | /** |
||
32 | * Crap Constructor |
||
33 | */ |
||
34 | public function __construct() |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function getHelp() |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
59 | } |
||
60 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):