You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (preg_match('/^is[A-Z]+/', $field) === 1 && method_exists($object, $field)) {
I've methods that do not have "get" or "is" as a prefix, and they don't work because of that regex. Right now, I'm implementing the __call method on my object, but it would be nice if ClosureExpressionVisitor is able to find the methods.
The text was updated successfully, but these errors were encountered:
gnumoksha
changed the title
ClosureExpressionVisitor
ClosureExpressionVisitor can not handle methods without the "get" prefix
Jul 13, 2021
Hello. I'm wondering why there is a regular expression check here:
collections/lib/Doctrine/Common/Collections/Expr/ClosureExpressionVisitor.php
Line 55 in 9491825
I've methods that do not have "get" or "is" as a prefix, and they don't work because of that regex. Right now, I'm implementing the
__call
method on my object, but it would be nice ifClosureExpressionVisitor
is able to find the methods.The text was updated successfully, but these errors were encountered: