Skip to content

Commit a31591f

Browse files
committed
fix phpstan
1 parent 9af5af3 commit a31591f

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

phpstan.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,3 +467,11 @@ parameters:
467467
- rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayMapRector.php
468468
- rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayReduceRector.php
469469
- src/NodeTypeResolver/PHPStan/Type/TypeFactory.php
470+
471+
-
472+
message: '#'#Parameter \#1 \$value of static method Webmozart\\Assert\\Assert\:\:isInstanceOfAny\(\) expects object, PhpParser\\Node\\ComplexType\|PhpParser\\Node\\Identifier\|PhpParser\\Node\\Name\|null given#'
473+
path: rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php
474+
475+
-
476+
message: '#Unable to resolve the template type T in call to static method Webmozart\\Assert\\Assert\:\:isInstanceOfAny\(\)#'
477+
path: rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php

rules/Carbon/NodeFactory/CarbonCallFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public function createFromDateTimeString(
3737
$methodCall = $this->createModifyMethodCall(
3838
$carbonCall,
3939
new Int_((int) $match['count']),
40-
$match['unit'],
41-
$match['operator']
40+
(string) $match['unit'],
41+
(string) $match['operator']
4242
);
4343
if ($methodCall instanceof MethodCall) {
4444
$carbonCall = $methodCall;

0 commit comments

Comments
 (0)