-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
87 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,241 +1,259 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Method PhpParser\\\\Builder\\\\ClassConst\\:\\:__construct\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\Builder\\ClassConst\:\:__construct\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/Builder/ClassConst.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\Builder\\\\ClassConst\\:\\:addConst\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\Builder\\ClassConst\:\:addConst\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/Builder/ClassConst.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:args\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:args\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:attribute\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:attribute\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:classConst\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:classConst\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:funcCall\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:funcCall\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:methodCall\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:methodCall\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:new\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:new\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:staticCall\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:staticCall\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderFactory\\:\\:val\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderFactory\:\:val\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderFactory.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\BuilderHelpers\\:\\:normalizeValue\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\BuilderHelpers\:\:normalizeValue\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/BuilderHelpers.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\ConstExprEvaluator\\:\\:evaluateArray\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\ConstExprEvaluator\:\:evaluateArray\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/ConstExprEvaluator.php | ||
|
||
- | ||
message: "#^Unary operation \"~\" on mixed results in an error\\.$#" | ||
count: 1 | ||
path: lib/PhpParser/ConstExprEvaluator.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\JsonDecoder\\:\\:decodeArray\\(\\) has parameter \\$array with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\JsonDecoder\:\:decodeArray\(\) has parameter \$array with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/JsonDecoder.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\JsonDecoder\\:\\:decodeArray\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\JsonDecoder\:\:decodeArray\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/JsonDecoder.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\JsonDecoder\\:\\:decodeComment\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\JsonDecoder\:\:decodeComment\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/JsonDecoder.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\JsonDecoder\\:\\:decodeNode\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\JsonDecoder\:\:decodeNode\(\) has parameter \$value with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/JsonDecoder.php | ||
|
||
- | ||
message: "#^Call to function assert\\(\\) with false will always evaluate to false\\.$#" | ||
message: '#^Call to function assert\(\) with false will always evaluate to false\.$#' | ||
identifier: function.impossibleType | ||
count: 1 | ||
path: lib/PhpParser/Lexer/Emulative.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Expr/ArrayItem.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Expr/ClosureUse.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Scalar/DNumber.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Scalar/Encapsed.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Scalar/EncapsedStringPart.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Scalar/LNumber.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Stmt/DeclareDeclare.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Stmt/PropertyProperty.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Stmt/StaticVar.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
message: '#^If condition is always false\.$#' | ||
identifier: if.alwaysFalse | ||
count: 1 | ||
path: lib/PhpParser/Node/Stmt/UseUse.php | ||
|
||
- | ||
message: "#^Constant T_PRIVATE_SET not found\\.$#" | ||
count: 2 | ||
path: lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php | ||
|
||
- | ||
message: "#^Constant T_PROTECTED_SET not found\\.$#" | ||
count: 2 | ||
path: lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php | ||
|
||
- | ||
message: "#^Constant T_PUBLIC_SET not found\\.$#" | ||
count: 2 | ||
path: lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php | ||
|
||
- | ||
message: "#^Constant T_PROPERTY_C not found\\.$#" | ||
count: 1 | ||
path: lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeDumper\\:\\:__construct\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\NodeDumper\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/NodeDumper.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeDumper\\:\\:dump\\(\\) has parameter \\$node with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\NodeDumper\:\:dump\(\) has parameter \$node with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/NodeDumper.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeTraverser\\:\\:traverseArray\\(\\) has parameter \\$nodes with no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\NodeTraverser\:\:traverseArray\(\) has parameter \$nodes with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/NodeTraverser.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeTraverser\\:\\:traverseArray\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
message: '#^Method PhpParser\\NodeTraverser\:\:traverseArray\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: lib/PhpParser/NodeTraverser.php | ||
|
||
- | ||
message: "#^Access to an undefined property PhpParser\\\\Node\\:\\:\\$attrGroups\\.$#" | ||
message: '#^Access to an undefined property PhpParser\\Node\:\:\$attrGroups\.$#' | ||
identifier: property.notFound | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/NameResolver.php | ||
|
||
- | ||
message: "#^Access to an undefined property PhpParser\\\\Node\\:\\:\\$name\\.$#" | ||
message: '#^Access to an undefined property PhpParser\\Node\:\:\$name\.$#' | ||
identifier: property.notFound | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/NameResolver.php | ||
|
||
- | ||
message: "#^Access to an undefined property PhpParser\\\\Node\\:\\:\\$namespacedName\\.$#" | ||
message: '#^Access to an undefined property PhpParser\\Node\:\:\$namespacedName\.$#' | ||
identifier: property.notFound | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/NameResolver.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeVisitor\\\\NodeConnectingVisitor\\:\\:beforeTraverse\\(\\) should return array\\<PhpParser\\\\Node\\>\\|null but return statement is missing\\.$#" | ||
message: '#^Method PhpParser\\NodeVisitor\\NodeConnectingVisitor\:\:beforeTraverse\(\) should return array\<PhpParser\\Node\>\|null but return statement is missing\.$#' | ||
identifier: return.missing | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/NodeConnectingVisitor.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeVisitor\\\\NodeConnectingVisitor\\:\\:enterNode\\(\\) should return array\\<PhpParser\\\\Node\\>\\|int\\|PhpParser\\\\Node\\|null but return statement is missing\\.$#" | ||
message: '#^Method PhpParser\\NodeVisitor\\NodeConnectingVisitor\:\:enterNode\(\) should return array\<PhpParser\\Node\>\|int\|PhpParser\\Node\|null but return statement is missing\.$#' | ||
identifier: return.missing | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/NodeConnectingVisitor.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeVisitor\\\\NodeConnectingVisitor\\:\\:leaveNode\\(\\) should return array\\<PhpParser\\\\Node\\>\\|int\\|PhpParser\\\\Node\\|null but return statement is missing\\.$#" | ||
message: '#^Method PhpParser\\NodeVisitor\\NodeConnectingVisitor\:\:leaveNode\(\) should return array\<PhpParser\\Node\>\|int\|PhpParser\\Node\|null but return statement is missing\.$#' | ||
identifier: return.missing | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/NodeConnectingVisitor.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeVisitor\\\\ParentConnectingVisitor\\:\\:beforeTraverse\\(\\) should return array\\<PhpParser\\\\Node\\>\\|null but return statement is missing\\.$#" | ||
message: '#^Method PhpParser\\NodeVisitor\\ParentConnectingVisitor\:\:beforeTraverse\(\) should return array\<PhpParser\\Node\>\|null but return statement is missing\.$#' | ||
identifier: return.missing | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/ParentConnectingVisitor.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeVisitor\\\\ParentConnectingVisitor\\:\\:enterNode\\(\\) should return array\\<PhpParser\\\\Node\\>\\|int\\|PhpParser\\\\Node\\|null but return statement is missing\\.$#" | ||
message: '#^Method PhpParser\\NodeVisitor\\ParentConnectingVisitor\:\:enterNode\(\) should return array\<PhpParser\\Node\>\|int\|PhpParser\\Node\|null but return statement is missing\.$#' | ||
identifier: return.missing | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/ParentConnectingVisitor.php | ||
|
||
- | ||
message: "#^Method PhpParser\\\\NodeVisitor\\\\ParentConnectingVisitor\\:\\:leaveNode\\(\\) should return array\\<PhpParser\\\\Node\\>\\|int\\|PhpParser\\\\Node\\|null but return statement is missing\\.$#" | ||
message: '#^Method PhpParser\\NodeVisitor\\ParentConnectingVisitor\:\:leaveNode\(\) should return array\<PhpParser\\Node\>\|int\|PhpParser\\Node\|null but return statement is missing\.$#' | ||
identifier: return.missing | ||
count: 1 | ||
path: lib/PhpParser/NodeVisitor/ParentConnectingVisitor.php | ||
|
||
- | ||
message: "#^Access to undefined constant static\\(PhpParser\\\\ParserAbstract\\)\\:\\:T_ECHO\\.$#" | ||
message: '#^Access to undefined constant static\(PhpParser\\ParserAbstract\)\:\:T_ECHO\.$#' | ||
identifier: classConstant.notFound | ||
count: 1 | ||
path: lib/PhpParser/ParserAbstract.php | ||
|
||
- | ||
message: "#^Unary operation \"\\+\" on string results in an error\\.$#" | ||
message: '#^Unary operation "\+" on string results in an error\.$#' | ||
identifier: unaryOp.invalid | ||
count: 1 | ||
path: lib/PhpParser/ParserAbstract.php | ||
|
||
- | ||
message: "#^Variable \\$action might not be defined\\.$#" | ||
message: '#^Variable \$action might not be defined\.$#' | ||
identifier: variable.undefined | ||
count: 1 | ||
path: lib/PhpParser/ParserAbstract.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"friendsofphp/php-cs-fixer": "^3.10", | ||
"phpstan/phpstan": "^1.8" | ||
"phpstan/phpstan": "^2.0" | ||
} | ||
} |