Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"lint" : "phpcs",
"fix" : "phpcbf",
"stan": "phpstan analyse --ansi --memory-limit 2048M",
"phpstan-baseline": "phpstan analyse --ansi --generate-baseline=phpstan-baseline.neon",
"phpstan-baseline": "phpstan analyse --ansi --generate-baseline",
"check": "composer lint && composer stan && composer test"
}
}
177 changes: 1 addition & 176 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ parameters:
count: 1
path: src/Error/Error.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 6
path: src/Error/Error.php

-
message: "#^Only booleans are allowed in &&, Throwable\\|null given on the left side\\.$#"
count: 1
Expand Down Expand Up @@ -80,11 +75,6 @@ parameters:
count: 1
path: src/Error/FormattedError.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 3
path: src/Error/FormattedError.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 5
Expand All @@ -110,46 +100,16 @@ parameters:
count: 1
path: src/Error/FormattedError.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Error/Warning.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Executor/ExecutionContext.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 2
path: src/Executor/ExecutionResult.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Executor/ExecutionResult.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Executor/Executor.php

-
message: "#^Variable property access on object\\.$#"
count: 2
path: src/Executor/Executor.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Executor/Promise/Adapter/SyncPromise.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 5
path: src/Executor/ReferenceExecutor.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 4
Expand Down Expand Up @@ -185,11 +145,6 @@ parameters:
count: 3
path: src/Experimental/Executor/CoroutineExecutor.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Experimental/Executor/CoroutineExecutor.php

-
message: "#^Variable property access on object\\.$#"
count: 2
Expand All @@ -200,11 +155,6 @@ parameters:
count: 1
path: src/Experimental/Executor/CoroutineExecutor.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/GraphQL.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 2
Expand All @@ -220,41 +170,16 @@ parameters:
count: 1
path: src/Language/AST/Node.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Language/Lexer.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 3
path: src/Language/Parser.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Language/Parser.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Language/Printer.php

-
message: "#^Only booleans are allowed in a ternary operator condition, array\\<GraphQL\\\\Language\\\\AST\\\\NamedTypeNode\\>\\|null given\\.$#"
count: 2
path: src/Language/Printer.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Language/Source.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Language/Visitor.php

-
message: "#^Only booleans are allowed in a negated boolean, array\\<int, array\\|GraphQL\\\\Language\\\\AST\\\\Node\\|GraphQL\\\\Language\\\\AST\\\\NodeList\\> given\\.$#"
count: 1
Expand Down Expand Up @@ -295,11 +220,6 @@ parameters:
count: 2
path: src/Server/Helper.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 4
path: src/Server/Helper.php

-
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
count: 1
Expand Down Expand Up @@ -340,11 +260,6 @@ parameters:
count: 1
path: src/Server/Helper.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Server/OperationParams.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 2
Expand All @@ -360,11 +275,6 @@ parameters:
count: 1
path: src/Type/Definition/EnumType.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Type/Definition/FieldDefinition.php

-
message: "#^Variable property access on \\$this\\(GraphQL\\\\Type\\\\Definition\\\\InputObjectField\\)\\.$#"
count: 1
Expand All @@ -380,11 +290,6 @@ parameters:
count: 1
path: src/Type/Definition/InputObjectType.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Type/Definition/ObjectType.php

-
message: "#^Only booleans are allowed in a negated boolean, GraphQL\\\\Language\\\\AST\\\\SelectionSetNode\\|null given\\.$#"
count: 1
Expand Down Expand Up @@ -416,7 +321,7 @@ parameters:
path: src/Type/Introspection.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
message: "#^Anonymous function should have native return typehint \"array\"\\.$#"
count: 1
path: src/Type/Introspection.php

Expand All @@ -430,11 +335,6 @@ parameters:
count: 1
path: src/Type/Schema.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Type/Schema.php

-
message: "#^Only booleans are allowed in a negated boolean, GraphQL\\\\Type\\\\Definition\\\\Type\\|null given\\.$#"
count: 1
Expand Down Expand Up @@ -515,11 +415,6 @@ parameters:
count: 1
path: src/Type/SchemaValidationContext.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Type/SchemaValidationContext.php

-
message: "#^Only booleans are allowed in a negated boolean, GraphQL\\\\Language\\\\AST\\\\InterfaceTypeDefinitionNode\\|GraphQL\\\\Language\\\\AST\\\\InterfaceTypeExtensionNode\\|GraphQL\\\\Language\\\\AST\\\\ObjectTypeDefinitionNode\\|GraphQL\\\\Language\\\\AST\\\\ObjectTypeExtensionNode given\\.$#"
count: 1
Expand Down Expand Up @@ -660,11 +555,6 @@ parameters:
count: 1
path: src/Utils/ASTDefinitionBuilder.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Utils/BreakingChangesFinder.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 3
Expand Down Expand Up @@ -725,11 +615,6 @@ parameters:
count: 1
path: src/Utils/TypeInfo.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Utils/TypeInfo.php

-
message: "#^Only booleans are allowed in an if condition, GraphQL\\\\Type\\\\Definition\\\\Directive\\|GraphQL\\\\Type\\\\Definition\\\\FieldDefinition\\|null given\\.$#"
count: 1
Expand All @@ -750,11 +635,6 @@ parameters:
count: 1
path: src/Utils/TypeInfo.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Utils/Utils.php

-
message: "#^Variable property access on object\\.$#"
count: 1
Expand Down Expand Up @@ -795,11 +675,6 @@ parameters:
count: 1
path: src/Utils/Value.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Validator/DocumentValidator.php

-
message: "#^Only booleans are allowed in a negated boolean, \\(GraphQL\\\\Type\\\\Definition\\\\CompositeType&GraphQL\\\\Type\\\\Definition\\\\Type\\)\\|null given\\.$#"
count: 1
Expand Down Expand Up @@ -905,11 +780,6 @@ parameters:
count: 2
path: src/Validator/Rules/OverlappingFieldsCanBeMerged.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Validator/Rules/OverlappingFieldsCanBeMerged.php

-
message: "#^Only booleans are allowed in a negated boolean, GraphQL\\\\Language\\\\AST\\\\ArgumentNode\\|null given\\.$#"
count: 1
Expand Down Expand Up @@ -940,11 +810,6 @@ parameters:
count: 1
path: src/Validator/Rules/ProvidedRequiredArguments.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Validator/Rules/ProvidedRequiredArguments.php

-
message: "#^Only booleans are allowed in \\|\\|, GraphQL\\\\Language\\\\AST\\\\ArgumentNode\\|null given on the left side\\.$#"
count: 1
Expand All @@ -970,26 +835,11 @@ parameters:
count: 1
path: src/Validator/Rules/ProvidedRequiredArgumentsOnDirectives.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Validator/Rules/ProvidedRequiredArgumentsOnDirectives.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 3
path: src/Validator/Rules/QueryComplexity.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Validator/Rules/QueryComplexity.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Validator/Rules/QuerySecurityRule.php

-
message: "#^Only booleans are allowed in &&, GraphQL\\\\Type\\\\Definition\\\\Type\\|null given on the left side\\.$#"
count: 1
Expand Down Expand Up @@ -1050,11 +900,6 @@ parameters:
count: 1
path: src/Validator/Rules/UniqueVariableNames.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Validator/Rules/ValidationRule.php

-
message: "#^Only booleans are allowed in \\|\\|, GraphQL\\\\Type\\\\Definition\\\\EnumType\\|GraphQL\\\\Type\\\\Definition\\\\InputObjectType\\|GraphQL\\\\Type\\\\Definition\\\\ListOfType\\|GraphQL\\\\Type\\\\Definition\\\\NonNull\\|GraphQL\\\\Type\\\\Definition\\\\ScalarType given on the left side\\.$#"
count: 1
Expand Down Expand Up @@ -1115,16 +960,6 @@ parameters:
count: 1
path: tests/Executor/DirectivesTest.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: tests/Executor/DirectivesTest.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 7
path: tests/Executor/ExecutorLazySchemaTest.php

-
message: "#^Only booleans are allowed in a negated boolean, GraphQL\\\\Type\\\\Definition\\\\InterfaceType given\\.$#"
count: 1
Expand Down Expand Up @@ -1165,11 +1000,6 @@ parameters:
count: 4
path: tests/Language/VisitorTest.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: tests/Server/Psr7/PsrStreamStub.php

-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 1
Expand Down Expand Up @@ -1200,8 +1030,3 @@ parameters:
count: 2
path: tests/Utils/MixedStoreTest.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: tests/Utils/ValueFromAstTest.php

Loading