doctrine / common

Doctrine Common
https://www.doctrine-project.org/projects/common.html
MIT License
5.78k stars 294 forks source link

Don't allow generating proxies for readonly classes #993

Closed nicolas-grekas closed 1 year ago

nicolas-grekas commented 1 year ago

Readonly classes cannot be proxied, let's reject them early on before we start generating broken proxies for them.

malarzm commented 1 year ago

Thanks @nicolas-grekas, this for sure will be handy in near future!