Skip to content

Commit 09303ad

Browse files
authored
Fix some ext/date return types (php#14600)
1 parent 9672cd9 commit 09303ad

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/date/php_date.stub.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function format(string $format): string {}
383383
/**
384384
* @tentative-return-type
385385
*/
386-
public function modify(string $modifier): DateTime|false {}
386+
public function modify(string $modifier): DateTime {}
387387

388388
/**
389389
* @tentative-return-type
@@ -521,7 +521,7 @@ public function getMicrosecond(): int {}
521521
public function diff(DateTimeInterface $targetObject, bool $absolute = false): DateInterval {}
522522

523523
/** @tentative-return-type */
524-
public function modify(string $modifier): DateTimeImmutable|false {}
524+
public function modify(string $modifier): DateTimeImmutable {}
525525

526526
/** @tentative-return-type */
527527
public function add(DateInterval $interval): DateTimeImmutable {}
@@ -644,7 +644,7 @@ public function __construct(string $duration) {}
644644
/**
645645
* @tentative-return-type
646646
*/
647-
public static function createFromDateString(string $datetime): DateInterval|false {}
647+
public static function createFromDateString(string $datetime): DateInterval {}
648648

649649
/**
650650
* @tentative-return-type

ext/date/php_date_arginfo.h

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)