goaop / framework

:gem: Go! AOP PHP - modern aspect-oriented framework for the new level of software development
go.aopphp.com
MIT License
1.66k stars 163 forks source link

[BC BREAK] Introduce new ClassJoinpoint->getScope() API #429

Closed lisachenko closed 5 years ago

lisachenko commented 5 years ago

This PR introduces a new API for working with scope and instances. Previously, all joinpoints have had the getThis() method which was strange for FunctionInvocation as it couldn't have a reference to the object. Thus, new ClassJoinpoint interface was added to provide explicit information about class joinpoints via getScope(), getThis() and isDynamic() methods.

Notable changes:

scrutinizer-notifier commented 5 years ago

The inspection completed: 16 updated code elements