Skip to content

Commit 4b9f74c

Browse files
committed
MC-36160: SVC false-positive: used a protected property from parents class
1 parent 05007f9 commit 4b9f74c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Analyzer/PropertyAnalyzer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ protected function reportAddedNode($report, $fileAfter, $classAfter, $propertyAf
6767
if ($this->dependencyGraph !== null) {
6868
$class = $this->dependencyGraph->findEntityByName((string)$classAfter->namespacedName);
6969
if ($class !== null) {
70-
$propertyOverwritten = $this->searchPropertyExistsRecursive($class, $propertyAfter->props[0]->name->toString());
70+
$propertyOverwritten = $this->searchPropertyExistsRecursive(
71+
$class,
72+
$propertyAfter->props[0]->name->toString()
73+
);
7174
if ($propertyOverwritten) {
7275
$report->add(
7376
$this->context,

0 commit comments

Comments
 (0)