Skip to content

Commit bd95f23

Browse files
Fix lint
1 parent 2973ade commit bd95f23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Type/Php/DateIntervalCreateFromDateStringThrowTypeExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPStan\Type\Php;
44

55
use DateInterval;
6+
use Throwable;
67
use PhpParser\Node\Expr\StaticCall;
78
use PHPStan\Analyser\Scope;
89
use PHPStan\DependencyInjection\AutowiredService;
@@ -44,7 +45,7 @@ public function getThrowTypeFromStaticMethodCall(MethodReflection $methodReflect
4445
foreach ($constantStrings as $constantString) {
4546
try {
4647
@DateInterval::createFromDateString($constantString->getValue());
47-
} catch (\Throwable) {
48+
} catch (Throwable) {
4849
return $methodReflection->getThrowType();
4950
}
5051

0 commit comments

Comments
 (0)