-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Warning: preg_match(): Unknown modifier 't' #41
Comments
Can you share more information here? Which version of GrumPHP? What was the pattern that you had to fix? Do you have to fix it for all tools or only some of them? |
So, these patterns are always regexes. As explained in this comment, we must escape the slashes. This means it is not a bug but we should document this better. |
Also, the explanation for why paths with slashes inside the string work is in this function. |
I have noticed that when paths in
ignore_patterns
have a/
at the end, it generates the following warning while running GrumPHP:PHP Warning: preg_match(): Unknown modifier 't' in phar:///var/www/html/vendor/phpro/grumphp-shim/grumphp.phar/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php on line 53
Solutions:
Fix paths for
ignore_patterns
ingrumphp.yml.dist
The text was updated successfully, but these errors were encountered: