Skip to content

Commit 15c25e2

Browse files
committed
Use import for ReturnTypeWillChange attribute
1 parent 34cb455 commit 15c25e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Chronos.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use DateTimeInterface;
2121
use DateTimeZone;
2222
use InvalidArgumentException;
23+
use ReturnTypeWillChange;
2324
use RuntimeException;
2425
use Stringable;
2526

@@ -997,7 +998,7 @@ public function modify(string $modifier): static
997998
* @param bool $absolute Whether the interval is forced to be positive
998999
* @return \Cake\Chronos\ChronosInterval
9991000
*/
1000-
#[\ReturnTypeWillChange]
1001+
#[ReturnTypeWillChange]
10011002
public function diff(DateTimeInterface $target, bool $absolute = false): ChronosInterval
10021003
{
10031004
return new ChronosInterval(parent::diff($target, $absolute));

0 commit comments

Comments
 (0)