Closed spaze closed 2 years ago
IsAllowedFileHelper now does the matching, it doesn't just concatenate some strings anymore.
IsAllowedFileHelper
First I wanted to also iterate say DisallowedCalls::allowedIn in the method but there are some other conditions that will influence the return value sometimes too, like exactly in DisallowedCalls: https://github.com/spaze/phpstan-disallowed-calls/blob/a16e9219f02c3b70099fe640abbb39b0452aa8d4/src/DisallowedHelper.php#L49-L54
DisallowedCalls::allowedIn
DisallowedCalls
Plus now the trait-related code is actually tested.
Fix #106
IsAllowedFileHelper
now does the matching, it doesn't just concatenate some strings anymore.First I wanted to also iterate say
DisallowedCalls::allowedIn
in the method but there are some other conditions that will influence the return value sometimes too, like exactly inDisallowedCalls
: https://github.com/spaze/phpstan-disallowed-calls/blob/a16e9219f02c3b70099fe640abbb39b0452aa8d4/src/DisallowedHelper.php#L49-L54Plus now the trait-related code is actually tested.
Fix #106