diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 09832cf26..74c813bb4 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,22 +1,47 @@ parameters: ignoreErrors: - - message: "#^Cannot call method once\\(\\) on mixed\\.$#" + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\Core\\\\Helpers\\\\Viewer, array\\ given\\.$#" count: 1 + path: packages/core/src/Helpers/ViewerTest.php + + - + message: "#^Call to an undefined method Mockery\\\\LegacyMockInterface\\:\\:once\\(\\)\\.$#" + count: 1 + path: packages/core/src/Observer/DispatcherTest.php + + - + message: "#^Return type of call to static method Mockery\\:\\:spy\\(\\) contains unresolvable type\\.$#" + count: 2 path: packages/core/src/Observer/DispatcherTest.php + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|DateTime, array\\ given\\.$#" + count: 1 + path: packages/eloquent/src/Concerns/WithDateSerializationTest.php + - message: "#^Parameter \\#1 \\$offset of method LastDragon_ru\\\\LaraASP\\\\Eloquent\\\\Iterators\\\\IteratorImpl\\\\:\\:setOffset\\(\\) expects int\\|string\\|null, mixed given\\.$#" count: 1 path: packages/eloquent/src/Iterators/ChunkedChangeSafeIterator.php - - message: "#^Cannot call method times\\(\\) on mixed\\.$#" + message: "#^Call to an undefined method Mockery\\\\LegacyMockInterface\\:\\:times\\(\\)\\.$#" count: 2 path: packages/eloquent/src/Iterators/ChunkedChangeSafeIteratorTest.php - - message: "#^Cannot call method once\\(\\) on mixed\\.$#" + message: "#^Return type of call to static method Mockery\\:\\:spy\\(\\) contains unresolvable type\\.$#" + count: 2 + path: packages/eloquent/src/Iterators/ChunkedChangeSafeIteratorTest.php + + - + message: "#^Call to an undefined method Mockery\\\\LegacyMockInterface\\:\\:once\\(\\)\\.$#" + count: 2 + path: packages/eloquent/src/Iterators/ChunkedIteratorTest.php + + - + message: "#^Return type of call to static method Mockery\\:\\:spy\\(\\) contains unresolvable type\\.$#" count: 2 path: packages/eloquent/src/Iterators/ChunkedIteratorTest.php @@ -25,6 +50,31 @@ parameters: count: 1 path: packages/formatter/src/Formatter.php + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\GraphQLPrinter\\\\Blocks\\\\BlockTest__Block, array\\ given\\.$#" + count: 1 + path: packages/graphql-printer/src/Blocks/BlockTest.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Stream\\\\Directives\\\\Directive, array\\ given\\.$#" + count: 2 + path: packages/graphql/src/Stream/Directives/DirectiveTest.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Stream\\\\Directives\\\\Directive, array\\ given\\.$#" + count: 3 + path: packages/graphql/src/Stream/Directives/DirectiveTest.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Stream\\\\Streams\\\\Database, array\\\\|int\\|LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Stream\\\\Offset\\|string\\> given\\.$#" + count: 1 + path: packages/graphql/src/Stream/Streams/DatabaseTest.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Stream\\\\Streams\\\\Scout, array\\ given\\.$#" + count: 3 + path: packages/graphql/src/Stream/Streams/ScoutTest.php + - message: "#^Method LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Testing\\\\Package\\\\Models\\\\Image\\:\\:imageable\\(\\) should return Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\MorphTo\\ but returns Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\MorphTo\\\\.$#" count: 1 @@ -90,11 +140,26 @@ parameters: count: 1 path: packages/testing/src/Mixins/TestResponseMixin.php + - + message: "#^Return type of call to static method Mockery\\:\\:spy\\(\\) contains unresolvable type\\.$#" + count: 1 + path: packages/testing/src/Package/TestCase.php + - message: "#^Parameter \\#1 \\$items of method LastDragon_ru\\\\LaraASP\\\\Testing\\\\Providers\\\\BaseDataProvider\\:\\:replaceExpectedValues\\(\\) expects array\\, array\\ given\\.$#" count: 1 path: packages/testing/src/Providers/TraversableDataProvider.php + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of static method Mockery\\:\\:mock\\(\\) expects class\\-string\\\\|LastDragon_ru\\\\LaraASP\\\\Testing\\\\Requirements\\\\PhpUnit\\\\Listener, array\\ given\\.$#" + count: 1 + path: packages/testing/src/Requirements/PhpUnit/ListenerTest.php + + - + message: "#^Return type of call to static method Mockery\\:\\:spy\\(\\) contains unresolvable type\\.$#" + count: 1 + path: packages/testing/src/TestCase.php + - message: "#^Method LastDragon_ru\\\\LaraASP\\\\Testing\\\\Utils\\\\Args\\:\\:getJson\\(\\) should return array\\|bool\\|float\\|int\\|stdClass\\|string\\|null but returns mixed\\.$#" count: 1