Ocramius / ocramius.github.com

:books: Coding thoughts and ideas by Ocramius
https://ocramius.github.io/
40 stars 26 forks source link

Explain the role of method signature and interface compliance in a pure messaging-oriented object-oriented language #114

Open Ocramius opened 7 years ago

Ocramius commented 7 years ago

As per recent discussions on Twitter, we are back to 2012, when I was still trying to build interceptor proxies with the __call() magic method approach. Evidently, people never learn that this approach isn't safe, and while it seems to save you time, it actually makes things harder to understand and debug when incompatible method calls happen.

An article could be needed, where following concepts are cleared up: