Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
28 | public static function run($command, &$commandOutput = null, &$returnCode = null) |
||
29 | { |
||
30 | $command = $command . self::REDIRECT_STDERR_TO_STDOUT; |
||
31 | |||
32 | exec($command, $commandOutput, $returnCode); |
||
33 | $commandOutput = self::parseCommandOutput($commandOutput); |
||
34 | |||
35 | if ($returnCode !== self::CODE_CLEAN_EXIT) { |
||
36 | throw new RuntimeException($commandOutput); |
||
37 | } |
||
38 | } |
||
39 | |||
59 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.