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
{{ message }}
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.
When doing the UT for #170 I cam across the ScopePointer which takes in any parameter into the constructor (string, int, object etc.) And based on the @return tag for the getObject it should return ClassMethod or FunctionDefinition
Seems We are having 2 ways how to improve this
1.
So I suggest to build a new Interface called like ScopePointerInterface
Implement ClassMethod, FunctionDefinition with ScopePointerInterface
When doing the UT for #170 I cam across the ScopePointer which takes in any parameter into the constructor (string, int, object etc.) And based on the
@return
tag for the getObject it should return ClassMethod or FunctionDefinitionhttps://github.com/ovr/phpsa/blob/master/src/ScopePointer.php#L23
https://github.com/ovr/phpsa/blob/master/src/ScopePointer.php#L51
I guess some type of type checking needs to be added, and an exception should be thrown if not type not permitted.
The text was updated successfully, but these errors were encountered: