File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Rules/TooWideTypehints Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,22 +86,22 @@ public function checkFunction(
86
86
return [];
87
87
}
88
88
89
- $ functionReturnTypes = [];
89
+ $ returnTypes = [];
90
90
foreach ($ returnStatements as $ returnStatement ) {
91
91
$ returnNode = $ returnStatement ->getReturnNode ();
92
92
if ($ returnNode ->expr === null ) {
93
- $ functionReturnTypes [] = new VoidType ();
93
+ $ returnTypes [] = new VoidType ();
94
94
continue ;
95
95
}
96
96
97
- $ functionReturnTypes [] = $ returnStatement ->getScope ()->getType ($ returnNode ->expr );
97
+ $ returnTypes [] = $ returnStatement ->getScope ()->getType ($ returnNode ->expr );
98
98
}
99
99
100
100
if (!$ statementResult ->isAlwaysTerminating ()) {
101
- $ functionReturnTypes [] = new VoidType ();
101
+ $ returnTypes [] = new VoidType ();
102
102
}
103
103
104
- $ returnType = TypeCombinator::union (...$ functionReturnTypes );
104
+ $ returnType = TypeCombinator::union (...$ returnTypes );
105
105
106
106
// Do not require to have @return null/true/false in descendant classes
107
107
if (
You can’t perform that action at this time.
0 commit comments