Skip to content

Comments

Fix DateTimeResult on PHP 8.1#2337

Merged
SamRemis merged 1 commit intoaws:masterfrom
GrahamCampbell:patch-1
Oct 27, 2021
Merged

Fix DateTimeResult on PHP 8.1#2337
SamRemis merged 1 commit intoaws:masterfrom
GrahamCampbell:patch-1

Conversation

@GrahamCampbell
Copy link
Contributor

Fixes #2327. Replaces #2331.

@GrahamCampbell
Copy link
Contributor Author

Friendly ping @SamRemis. :)

}

/**
* @param $iso8601Timestamp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should rather be @param string $iso8601Timestamp

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to accept non-string params too, otherwise the is_string check would be dead code. adding propper type doc is out of scope here. I've just removed some invalid syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid timestamp value passed to DateTimeResult::fromTimestamp on PHP 8.1

3 participants