Skip to content

Commit

Permalink
Clean up phpstan ignore error mask (#210)
Browse files Browse the repository at this point in the history
* Clean up phpstan ignore error mask

* fix phpstan notice

* fix

* clean up

* fix
  • Loading branch information
samsonasik authored Jun 12, 2021
1 parent 3b64243 commit 7716d17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -502,5 +502,5 @@ parameters:
- '#"@var_export\(new \\Symplify\\EasyCodingStandard\\Caching\\ValueObject\\CacheItem\(\$variableKey, \$data\), true\)" is forbidden to use#'

-
message: '#Missing sprintf\(\) function for a mask#'
path: rules/CodingStyle/Rector/Encapsed/EncapsedStringsToSprintfRector.php #124
message: '#Class "Doctrine\\DBAL\\Platforms\\MySqlPlatform" used in annotation is missing#'
path: rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/DoctrineColumnPropertyTypeInferer.php
2 changes: 1 addition & 1 deletion rules/Naming/ArrayDimFetchRenamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
}

/**
* @see \Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector::renameVariableInClassMethod
* @see VariableRenamer::renameVariableInFunctionLike()
*/
public function renameToVariable(
ClassMethod $classMethod,
Expand Down
2 changes: 1 addition & 1 deletion src/NodeManipulator/VariableManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private function isTestCaseExpectedVariable(Variable $variable): bool

/**
* Inspiration
* @see \Rector\Core\NodeManipulator\PropertyManipulator::isReadOnlyProperty()
* @see \Rector\Core\NodeManipulator\PropertyManipulator::isPropertyUsedInReadContext()
*/
private function isReadOnlyVariable(ClassMethod $classMethod, Assign $assign): bool
{
Expand Down

0 comments on commit 7716d17

Please sign in to comment.