Skip to content

Commit

Permalink
PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost authored and cristianoc72 committed Oct 3, 2024
1 parent 29a6691 commit e208a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion File.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function append(Stringable|string $contents): self {
*
* @throws FileException when something goes wrong
*/
public function touch(DateTime|int $created = null, DateTime|int $lastAccessed = null): void {
public function touch(DateTime|int|null $created = null, DateTime|int|null $lastAccessed = null): void {
$created = $created instanceof DateTime
? $created->getTimestamp()
: ($created === null ? time() : $created);
Expand Down

0 comments on commit e208a8f

Please sign in to comment.