Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
temporary ignore phpstan error on regex uri not added
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 20, 2020
1 parent 46338c8 commit 8237ac5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ class SomeClass
public function __construct()
{
}
/**
* Get Translator
*/
public function getTranslator()
{
}
}
CODE_SAMPLE
,
Expand All @@ -98,6 +105,10 @@ class SomeClass
public function __construct()
{
}
public function getTranslator()
{
}
}
CODE_SAMPLE
),
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ parameters:
paths:
- packages/monorepo-builder/packages/release/src/Configuration/VersionResolver.php

-
message: '#Add regex101\.com link to that shows the regex in practise, so it will be easier to maintain in case of bug/extension in the future#'
paths:
- packages/coding-standard/src/Fixer/Commenting/RemoveUselessClassCommentFixer.php # 37

# child type
- '#Parameter \#1 \$node of method Symplify\\PHPStanRules\\Rules\\ForbiddenSpreadOperatorRule\:\:hasVariadicParam\(\) expects PhpParser\\Node\\Expr\\ArrowFunction\|PhpParser\\Node\\Expr\\Closure\|PhpParser\\Node\\Stmt\\ClassMethod\|PhpParser\\Node\\Stmt\\Function_, PhpParser\\Node\\Expr\\ArrowFunction\|PhpParser\\Node\\Expr\\Closure\|\(PhpParser\\Node\\Expr\\FuncCall&PhpParser\\Node\\FunctionLike\)\|\(PhpParser\\Node\\Expr\\MethodCall&PhpParser\\Node\\FunctionLike\)\|\(PhpParser\\Node\\Expr\\StaticCall&PhpParser\\Node\\FunctionLike\)\|PhpParser\\Node\\Stmt\\ClassMethod\|PhpParser\\Node\\Stmt\\Function_ given#'
- '#Class with base "Regex" name is already used in "MongoDB\\BSON\\Regex", "Symplify\\PHPStanRules\\ValueObject\\Regex"\. Use unique name to make classes easy to recognize#'

0 comments on commit 8237ac5

Please sign in to comment.