parameters:
level: 8
paths:
- src
- tests
- config
tmpDir: build/phpstan
treatPhpDocTypesAsCertain: false
ignoreErrors:
# Core functionality errors that should be fixed
- message: '#Access to an undefined property Ratchet\\ConnectionInterface::\$resourceId#'
- message: '#Unsafe usage of new static\(\)#'
# Mockery-related patterns
- message: '#Call to an undefined method Mockery\\ExpectationInterface\|Mockery\\HigherOrderMessage(\|Mockery\\MockInterface)?::(andReturn|once|with|withNoArgs)\(\)#'
- message: '#Access to an undefined property Mockery\\MockInterface&Ratchet\\ConnectionInterface::\$resourceId#'
# Test-specific patterns
- message: '#Method .*Test::.* has no return type specified#'
# Array type hints - these could be fixed later for better type safety
- message: '#Method .* (return type|has parameter \$[a-zA-Z_]+ with no|type has no) value type specified in iterable type array#'
- message: '#Property .* type has no value type specified in iterable type array#'
# Anonymous class properties
- message: '#Property class@anonymous.*::\$(handler|messages|parameters) has no type specified#'
|