We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fe9402 commit ceca7c9Copy full SHA for ceca7c9
src/ChronosInterval.php
@@ -14,6 +14,7 @@
14
namespace Cake\Chronos;
15
16
use DateInterval;
17
+use InvalidArgumentException;
18
use Stringable;
19
20
/**
@@ -126,7 +127,7 @@ public static function createFromDateString(string $datetime): static
126
127
{
128
$interval = DateInterval::createFromDateString($datetime);
129
if ($interval === false) {
- throw new \InvalidArgumentException("Unable to parse interval string: {$datetime}");
130
+ throw new InvalidArgumentException("Unable to parse interval string: {$datetime}");
131
}
132
133
return new static($interval);
0 commit comments