wunderio / code-quality

List of tools that aims to help with static code quality inspection.
GNU General Public License v3.0
2 stars 5 forks source link

Fix "PHP Warning: preg_match(): Unknown modifier 'c'" #105

Closed hkirsman closed 6 months ago

hkirsman commented 6 months ago

There has been for a long time this warning:

Running tasks with priority 0!
==============================

Running task 1/1: check_file_permissions... 

PHP Warning:  preg_match(): Unknown modifier 'c' in /home/circleci/project/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php on line 58
PHP Warning:  preg_match(): Unknown modifier 'c' in /home/circleci/project/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php on line 58
PHP Warning:  preg_match(): Unknown modifier 'c' in /home/circleci/project/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php on line 58
Running task 1/1: check_file_permissions... ✘

It's caused by ignore pattern in configs that is parsed as regex, but we're defining it was string. 2024-05-27_14-00