Skip to content

Commit

Permalink
drop phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 17, 2024
1 parent 1b91c1e commit 8d1564a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 38 deletions.
36 changes: 0 additions & 36 deletions phpstan-baseline.neon

This file was deleted.

8 changes: 6 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- phpstan-baseline.neon

parameters:
level: 4
Expand All @@ -18,7 +17,7 @@ parameters:
- '~^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
# TODO
- '~^Dynamic call to static method .+\.~' # TODO in https://github.com/roundcube/roundcubemail/pull/9314
- '~^Construct empty\(\) is not allowed\. Use more strict comparison\.~'
- '~^Loose comparison via "[=!]=" is not allowed\.~'
Expand All @@ -27,6 +26,11 @@ parameters:
- '~^Call to function (array_search|in_array)\(\) requires parameter #3 to be set\.~'
- '~^Call to function base64_decode\(\) requires parameter #2 to be (set|true).~'

-
message: '~^Parameter #1 \$browser \(Tests\\Browser\\Browser\) of method Tests\\Browser\\Components\\\w+::assert\(\) should be contravariant with parameter \$browser \(Laravel\\Dusk\\Browser\) of method Laravel\\Dusk\\Component::assert\(\)$~'
count: 7
path: tests/Browser/Components/*.php

# https://github.com/php/pecl-authentication-krb5
-
path: 'program/lib/Roundcube/rcube_imap_generic.php'
Expand Down

0 comments on commit 8d1564a

Please sign in to comment.