Closed
Description
Symfony version(s) affected
≥ 6.2
Description
Calling PropertyAccessor::isReadable()
on a lazy object’s missing property will trigger an error, even if the object is fully loaded.
This is because PropertyAccessor::getReadInfo()
will return the property as public as its class has a __get
method, and trying to access it will call trigger_error
:
How to reproduce
Call PropertyAccessor::isReadable()
on a lazy object’s (like a Doctrine proxy) missing property. Instead of false
, you’ll get an ErrorException
.
Possible Solution
No response
Additional Context
No response