Skip to content

Commit 940fe49

Browse files
committed
fix for sf5
1 parent b5f610d commit 940fe49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Cache/PropertyResolver/AssociationResolver.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function createInverseExpression(
119119
};
120120

121121
if (null === $node = $this->expressionLanguage?->parse($expression, ['obj'])->getNodes()) {
122-
throw new \RuntimeException('Could not parse expression: '. (string) $expression);
122+
throw new \RuntimeException('Could not parse expression: '.(string) $expression);
123123
}
124124

125125
$inverseIf = $this->replaceObjWithInverse($node, $name, $callType)->dump();
@@ -138,7 +138,6 @@ private function replaceObjWithInverse(Node $node, string $inverse, int $type):
138138
attribute: new ConstantNode(
139139
value: $inverse,
140140
isIdentifier: true,
141-
isNullSafe: false,
142141
),
143142
arguments: new ArgumentsNode(),
144143
type: $type,
@@ -150,7 +149,7 @@ private function replaceObjWithInverse(Node $node, string $inverse, int $type):
150149

151150
/**
152151
* @var string $key
153-
* @var Node $childNode
152+
* @var Node $childNode
154153
*/
155154
foreach ($node->nodes as $key => $childNode) {
156155
$newNode->nodes[$key] = $this->replaceObjWithInverse($childNode, $inverse, $type);

0 commit comments

Comments
 (0)