Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/php-8.3' into php-8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspoerschke committed Dec 17, 2023
2 parents 7914874 + 484f6ca commit eee68f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/example3.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/

// 1. Create event generator
$generator = function (): \Generator {
$generator = function (): Generator {
$day = new \DateTimeImmutable();
$dayInterval = new \DateInterval('P1D');
for ($i = 0; $i < 10; ++$i) {
Expand Down
4 changes: 2 additions & 2 deletions src/Presentation/Component/Property/Value/DurationValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class DurationValue extends Value
{
private \DateInterval $duration;

public function __construct(\DateInterval $duration)
public function __construct(DateInterval $duration)
{
$this->duration = $duration;
}
Expand Down Expand Up @@ -66,7 +66,7 @@ public function __toString(): string
*
* @see https://www.php.net/manual/de/class.dateinterval.php
*/
private function getNormalizedDateInterval(): \DateInterval
private function getNormalizedDateInterval(): DateInterval
{
$baseDate = (new \DateTimeImmutable())->setTimestamp(0);
$nextDate = $baseDate->sub($this->duration);
Expand Down

0 comments on commit eee68f0

Please sign in to comment.