Skip to content

Commit 7c741c0

Browse files
committed
Fix PHPStan findings
1 parent b4eb806 commit 7c741c0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Tree/Strategy/ORM/Closure.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ public function processMetadataLoad($em, $meta)
136136

137137
if (property_exists($closureMetadata, 'propertyAccessors')) {
138138
// ORM 3.4+
139-
/** @phpstan-ignore-next-line class.NotFound Class introduced in ORM 3.4 */
140139
$closureMetadata->propertyAccessors['ancestor'] = PropertyAccessorFactory::createPropertyAccessor(
141140
$closureMetadata->getName(),
142141
'ancestor'
@@ -185,7 +184,6 @@ public function processMetadataLoad($em, $meta)
185184

186185
if (property_exists($closureMetadata, 'propertyAccessors')) {
187186
// ORM 3.4+
188-
/** @phpstan-ignore-next-line class.NotFound Class introduced in ORM 3.4 */
189187
$closureMetadata->propertyAccessors['descendant'] = PropertyAccessorFactory::createPropertyAccessor(
190188
$closureMetadata->getName(),
191189
'descendant'

src/Tree/Strategy/ORM/Nested.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,9 @@ public function shiftRL(EntityManagerInterface $em, $class, $first, $delta, $roo
626626

627627
$nodeMeta = $em->getClassMetadata(get_class($node));
628628

629+
/** @phpstan-ignore-next-line function.alreadyNarrowedType Property introduced in ORM 3.4 */
629630
if (property_exists($nodeMeta, 'propertyAccessors')) {
630631
// ORM 3.4+
631-
/** @phpstan-ignore-next-line method.NotFound Method introduced in ORM 3.4 */
632632
if (!array_key_exists($config['left'], $nodeMeta->getPropertyAccessors())) {
633633
continue;
634634
}
@@ -726,9 +726,9 @@ public function shiftRangeRL(EntityManagerInterface $em, $class, $first, $last,
726726

727727
$nodeMeta = $em->getClassMetadata(get_class($node));
728728

729+
/** @phpstan-ignore-next-line function.alreadyNarrowedType Property introduced in ORM 3.4 */
729730
if (property_exists($nodeMeta, 'propertyAccessors')) {
730731
// ORM 3.4+
731-
/** @phpstan-ignore-next-line method.NotFound Method introduced in ORM 3.4 */
732732
if (!array_key_exists($config['left'], $nodeMeta->getPropertyAccessors())) {
733733
continue;
734734
}

0 commit comments

Comments
 (0)