Skip to content

Commit 2973ade

Browse files
Improve
1 parent 349f5be commit 2973ade

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Type/Php/DateIntervalCreateFromDateStringThrowTypeExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public function getThrowTypeFromStaticMethodCall(MethodReflection $methodReflect
4343

4444
foreach ($constantStrings as $constantString) {
4545
try {
46-
DateInterval::createFromDateString($constantString->getValue());
47-
} catch (\Exception) { // phpcs:ignore
46+
@DateInterval::createFromDateString($constantString->getValue());
47+
} catch (\Throwable) {
4848
return $methodReflection->getThrowType();
4949
}
5050

0 commit comments

Comments
 (0)