diff --git a/composer.json b/composer.json index b41002a..7dedafb 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,8 @@ "phpunit/phpunit": "^9.5.5", "laravel/pint": "^0.2.3", "workerman/workerman": "^4.0", - "phpstan/phpstan": "^1.8" + "phpstan/phpstan": "^1.8", + "jetbrains/phpstorm-stubs": "dev-master" }, "suggest": { "ext-swoole": "Needed to support Swoole.", diff --git a/phpstan.neon b/phpstan.neon index 7e8118f..21e29ce 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,11 +7,4 @@ parameters: scanDirectories: - vendor/swoole - - # phpredis stubs don't include Redis Streams methods (xAdd, xGroup, etc.) - # These methods exist at runtime but PHPStan's stubs are incomplete - # See: https://github.com/phpredis/phpredis-stubs/issues - ignoreErrors: - - - message: '#Call to an undefined method RedisCluster::(x(Add|Group|ReadGroup|Ack|Pending|Claim|AutoClaim|Del|Len|Trim|Info|Range|RevRange)|eval)\(\)#' - path: src/Queue/Connection/RedisStreamCluster.php \ No newline at end of file + - vendor/jetbrains/phpstorm-stubs \ No newline at end of file