diff --git a/src/Carbon/CarbonPeriod.php b/src/Carbon/CarbonPeriod.php index 4595d5c631..ef5faccee0 100644 --- a/src/Carbon/CarbonPeriod.php +++ b/src/Carbon/CarbonPeriod.php @@ -1310,6 +1310,7 @@ public function setEndDate($date, $inclusive = null) * * @return bool */ + #[ReturnTypeWillChange] public function valid() { return $this->validateCurrentDate() === true; @@ -1320,6 +1321,7 @@ public function valid() * * @return int|null */ + #[ReturnTypeWillChange] public function key() { return $this->valid() @@ -1332,6 +1334,7 @@ public function key() * * @return CarbonInterface|null */ + #[ReturnTypeWillChange] public function current() { return $this->valid() @@ -1346,6 +1349,7 @@ public function current() * * @return void */ + #[ReturnTypeWillChange] public function next() { if ($this->current === null) { @@ -1372,6 +1376,7 @@ public function next() * * @return void */ + #[ReturnTypeWillChange] public function rewind() { $this->key = 0;