Skip to content

Commit 556c707

Browse files
committed
Use import for ReturnTypeWillChange attribute
1 parent b972744 commit 556c707

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

@@ -1013,7 +1014,7 @@ public function modify(string $modifier): static
10131014
* @param bool $absolute Whether the interval is forced to be positive
10141015
* @return \Cake\Chronos\ChronosInterval
10151016
*/
1016-
#[\ReturnTypeWillChange]
1017+
#[ReturnTypeWillChange]
10171018
public function diff(DateTimeInterface $target, bool $absolute = false): ChronosInterval
10181019
{
10191020
return new ChronosInterval(parent::diff($target, $absolute));

0 commit comments

Comments
 (0)