? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
24 Mar 2021

Summary of Changes

According to phpStorm, "RFC2822 was removed in PHP 7.2"

Reference in phpStorm https://github.com/JetBrains/phpstorm-stubs/pull/297/files

Reference in php-src php/php-src#2483

Screenshot 2021-03-24 at 22 02 30

I believe what they are trying to say is that the constants were moved from the DateTime to the DateTimeInterface in PHP 7.2

Testing Instructions

The new unit tests cover this - cough cough - test those at #32848

Manually run:

$date = new Date("8th March 1978 6:06pm", new \DateTimeZone('UTC'));

echo $date->toRFC822(); // Should give 'Wed, 08 Mar 1978 18:06:00 +0000'

Actual result BEFORE applying this Pull Request

'Wed, 08 Mar 1978 18:06:00 +0000'

Expected result AFTER applying this Pull Request

'Wed, 08 Mar 1978 18:06:00 +0000' but phpStorm is happy

Documentation Changes Required

none

avatar PhilETaylor PhilETaylor - open - 24 Mar 2021
avatar PhilETaylor PhilETaylor - change - 24 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Mar 2021
Category Libraries
avatar PhilETaylor PhilETaylor - change - 24 Mar 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 24 Mar 2021
avatar wilsonge wilsonge - change - 25 Mar 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-03-25 14:46:21
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 25 Mar 2021
avatar wilsonge wilsonge - merge - 25 Mar 2021
avatar wilsonge
wilsonge - comment - 25 Mar 2021

Seems fine. Definitely will work either way. But can't hurt to use the interface

Add a Comment

Login with GitHub to post a comment