Skip to content

Commit

Permalink
Disable proxy's auto refresh when an accessor is set
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Ben87 committed Sep 5, 2023
1 parent 2b279b8 commit d61a3c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ExpressionLanguage/Evaluator/FactoryEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public function __invoke(
throw new UnexpectedTypeException($value, Proxy::class);
}

$value->disableAutoRefresh();

return PropertyAccess::createPropertyAccessor()->getValue($value->object(), $accessor);
}

Expand Down

0 comments on commit d61a3c5

Please sign in to comment.