Skip to content

Commit 2c84f75

Browse files
committed
Ignore PHPStan error from lowest react/async await() return type
With lowest dependencies, react/async await() returns mixed instead of the generic type, causing a type mismatch on fromResponseInterface(). reportUnmatchedIgnoredErrors is already false so this is harmless when running with highest dependencies. 🤖 Generated with Claude Code
1 parent c843125 commit 2c84f75

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ parameters:
4444
# Magic property on an abstract class
4545
- '#Access to an undefined property Spawnia\\Sailor\\ErrorFreeResult::\$data.*#'
4646
- '#Access to an undefined property Spawnia\\Sailor\\Result::\$data.*#'
47+
# Due to different versions of react/async, await() return type is mixed in the lowest version
48+
- '#Parameter .+ of static method Spawnia\\Sailor\\Response::fromResponseInterface\(\) expects .+, mixed given\.#'
4749
# Due to the workaround with ObjectLike::UNDEFINED
4850
- '#Default value of the parameter .+ \(string\) of method .+::make\(\) is incompatible with type .+#'
4951
- '#Default value of the parameter .+ \(string\) of method .+::execute\(\) is incompatible with type .+#'

0 commit comments

Comments
 (0)