File: phpstan.neon.dist

package info (click to toggle)
php-enum 4.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: php: 3,481; xml: 15; makefile: 8
file content (19 lines) | stat: -rw-r--r-- 1,148 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
    ignoreErrors:
        # EnumSet internally handles a bitset to be either an integer or a string
        - message: '#Binary operation "[\|\&\^]" between int\|string and int\|string results in an error#'
          path: %currentWorkingDirectory%/src/EnumSet.php

        # EnumSerializableTrait
        - message: '#Access to private property \$[a-z]+ of parent class MabeEnum\\Enum#'
          path: %currentWorkingDirectory%/src/EnumSerializableTrait.php
        - message: '#Access to private static property \$instances#'
          path: %currentWorkingDirectory%/src/EnumSerializableTrait.php

        # Tests
        - message: '#Parameter \#\d \$[a-z]* of static method MabeEnum\\Enum::[^ ]* expects [^ ]*, .+ given#'
          path: %currentWorkingDirectory%/tests/
        - message: '#Parameter \#\d \$[a-z]* of method MabeEnum\\EnumSet<[^ ]*>::[^ ]* expects [^ ]*, .+ given#'
          path: %currentWorkingDirectory%/tests/
        - message: '#Parameter \#\d \$[a-z]* of class MabeEnum\\Enum(Set|Map) constructor expects class-string<T of MabeEnum\\Enum>, string given#'
          path: %currentWorkingDirectory%/tests/