Fix static code analysis, disable strict rule regarding array_filter()

This commit is contained in:
Aleksander Machniak
2024-04-07 09:34:15 +02:00
parent e086c2c97c
commit c048b0529c

View File

@@ -15,6 +15,7 @@ parameters:
- '~^Variable (static )?(property access|method call) on .+\.~'
- '~^Variable variables are not allowed.~'
- '~^Variable .* might not be defined\.~'
- '~Call to function array_filter\(\) requires parameter #2 to be passed to avoid loose comparison semantics.~'
# relax strict rules - move to phpstan baseline once almost all l6 errors are fixed
- '~^Dynamic call to static method .+\.~' # TODO in https://github.com/roundcube/roundcubemail/pull/9314
- '~^Construct empty\(\) is not allowed\. Use more strict comparison\.~'