Support type rules. Say we have a class `MyClass` it should be possible to do : ``` php Matcher::match(new MyClass(), ['MyClass' => $function]); ``` This could however have impact on identifiers, how do we avoid creating issues with them ? Maybe something like : ``` php Matcher::match(new MyClass(), ['MyClass <identifier>' => $function]); ``` The "MyClass" parts becaming a constraint on the following identifier. This way we could also enforce types using patterns like `"int a"` or `"bool a"`.
Activity
Merge pull request #2 from ace411/fixes