Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public static function forDirectory(string $directory, ExceptionContract $previous = null): ExceptionContract |
||
25 | { |
||
26 | $message = sprintf('Invalid directory: `%s`.', $directory); |
||
27 | $self = new self($message, self::CODE, $previous); |
||
28 | $self->directory = $directory; |
||
29 | |||
30 | return $self; |
||
31 | } |
||
32 | |||
41 |
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.