1 | <?php |
||
18 | final class FilesystemRequirements extends RequirementCollection |
||
19 | { |
||
20 | /** |
||
21 | * @param TranslatorInterface $translator |
||
22 | * @param string $cacheDir |
||
23 | * @param string $logsDir |
||
24 | * @param string $rootDir Deprecated. |
||
|
|||
25 | */ |
||
26 | public function __construct(TranslatorInterface $translator, string $cacheDir, string $logsDir, string $rootDir = null) |
||
51 | } |
||
52 |
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.