Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP8.1 DateTime constructor null time #4

Merged

Conversation

ChristophWurst
Copy link

@ChristophWurst ChristophWurst commented May 23, 2022

2022-05-23T12:36:26.1200227Z PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 38
2022-05-23T12:36:26.1201392Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 51
2022-05-23T12:36:26.1202223Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 53
2022-05-23T12:36:26.1203093Z PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 38
2022-05-23T12:36:26.1203872Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 51
2022-05-23T12:36:26.1204664Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 53
2022-05-23T12:36:26.1298918Z PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 38
2022-05-23T12:36:26.1300087Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 51
2022-05-23T12:36:26.1300898Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 53
2022-05-23T12:36:26.1301658Z PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 38
2022-05-23T12:36:26.1302506Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 51
2022-05-23T12:36:26.1303382Z PHP Deprecated:  DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/runner/work/Imap_Client/Imap_Client/lib/Horde/Imap/Client/DateTime.php on line 53

Proof that 'now' gives the same result as null: https://3v4l.org/mPXnf

Upstream PR horde#20

@bytestream bytestream merged commit 7ebbf0e into bytestream:master May 23, 2022
@ChristophWurst ChristophWurst deleted the fix/php8.1-datetime-null-time branch May 23, 2022 13:43
st3iny pushed a commit to st3iny/horde-imap-client that referenced this pull request Nov 4, 2024
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.

2 participants