Skip to content

Commit cd4e1ef

Browse files
authored
Merge pull request #485 from cakephp/return-deprecation
Fix createFromTimestamp() deprecation message
2 parents 8f9d029 + fe8dd49 commit cd4e1ef

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@
1111
<directory suffix=".php">src/</directory>
1212
</whitelist>
1313
</filter>
14+
15+
<php>
16+
<!-- E_ALL (32767) -->
17+
<ini name="error_reporting" value="32767"/>
18+
</php>
1419
</phpunit>

src/Traits/FactoryTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ public static function createFromArray(array $values): ChronosInterface
336336
* @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
337337
* @return static
338338
*/
339+
#[\ReturnTypeWillChange]
339340
public static function createFromTimestamp(float|int $timestamp, $tz = null): ChronosInterface
340341
{
341342
$instance = static::now($tz)->setTimestamp($timestamp);

0 commit comments

Comments
 (0)