We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
17 | class FieldDefinition extends BaseFieldDefinition |
||
18 | { |
||
19 | /** |
||
20 | * @var callable |
||
21 | */ |
||
22 | private $complexityFn; |
||
23 | |||
24 | public static function getDefinition() |
||
33 | |||
34 | public static function createMap(array $fields) |
||
46 | |||
47 | /** |
||
48 | * @param array|Config $field |
||
49 | * |
||
50 | * @return FieldDefinition |
||
51 | */ |
||
52 | public static function create($field) |
||
58 | |||
59 | protected function __construct(array $config) |
||
65 | |||
66 | /** |
||
67 | * @return callable|\Closure |
||
68 | */ |
||
69 | public function getComplexityFn() |
||
73 | |||
74 | public static function defaultComplexity($childrenComplexity) |
||
78 | } |
||
79 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.