File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
rules/CodeQuality/NodeAnalyser Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,11 @@ public function collect(ClassMethod|Foreach_ $stmtsAware): array
4141 if (! $ stmt instanceof Expression) {
4242 continue ;
4343 }
44+
4445 if (! $ stmt ->expr instanceof Assign) {
4546 continue ;
4647 }
48+
4749 $ assign = $ stmt ->expr ;
4850
4951 $ firstArg = $ this ->matchCreateMockArgAssignedToVariable ($ assign );
@@ -65,6 +67,7 @@ public function collect(ClassMethod|Foreach_ $stmtsAware): array
6567 if ($ mockClassReflection ->isAbstract ()) {
6668 continue ;
6769 }
70+
6871 if ($ mockClassReflection ->isInterface ()) {
6972 continue ;
7073 }
@@ -79,9 +82,9 @@ public function collect(ClassMethod|Foreach_ $stmtsAware): array
7982 /**
8083 * @return array<string, string>
8184 */
82- public function collectEntityClasses (ClassMethod $ stmtsAware ): array
85+ public function collectEntityClasses (ClassMethod $ classMethod ): array
8386 {
84- $ variableNamesToClassNames = $ this ->collect ($ stmtsAware );
87+ $ variableNamesToClassNames = $ this ->collect ($ classMethod );
8588
8689 $ variableNamesToEntityClasses = [];
8790
You can’t perform that action at this time.
0 commit comments