PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
25 Feb 2025

Pull Request for Issue #45006 .

Summary of Changes

null coalescing operator

Testing Instructions

run npx cypress run --spec '.\tests\System\integration\site\components\com_users\Reset.cy.js'

check php_errors.log

Actual result BEFORE applying this Pull Request

PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in ..\components\com_users\src\Model\ResetModel.php on line 530: Passing null to parameter #1 ($datetime) of type string is deprecated in ..\components\com_users\src\Model\ResetModel.php on line 530

Expected result AFTER applying this Pull Request

no more PHP Deprecated: strtotime():

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 25 Feb 2025
avatar alikon alikon - change - 25 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Feb 2025
Category Front End com_users
avatar alikon alikon - change - 25 Feb 2025
The description was changed
avatar alikon alikon - edited - 25 Feb 2025
avatar alikon alikon - change - 25 Feb 2025
Title
null coalescing operator
[5.x][ cypress] null coalescing operator
avatar alikon alikon - edited - 25 Feb 2025
avatar alikon alikon - change - 26 Feb 2025
Labels Added: PR-5.3-dev
avatar muhme muhme - test_item - 1 Mar 2025 - Tested successfully
avatar muhme
muhme - comment - 1 Mar 2025

I have tested this item ✅ successfully on bfe4b45

Tested on Windows 11 Laragon (as the deprecation message was not reproducable on JBT (using Docker Debian 11) and not reproducable on macOS 15.3.1.

Before applying the patch problem seen:

[01-Mar-2025 16:47:02 UTC] PHP Deprecated:  strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in C:\laragon\www\j53\components\com_users\src\Model\ResetModel.php on line 530

After aplying this PR with Joomla! Patch Tester the PHP Deprecated message was no more shown.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45008.

avatar brianteeman
brianteeman - comment - 1 Mar 2025

more likely to be a php version thing than an os

avatar brianteeman brianteeman - test_item - 1 Mar 2025 - Tested successfully
avatar brianteeman
brianteeman - comment - 1 Mar 2025

I have tested this item ✅ successfully on bfe4b45

php -v
PHP 8.3.3 (cli) (built: Feb 13 2024 23:17:12) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45008.

avatar muhme
muhme - comment - 1 Mar 2025

more likely to be a php version thing than an os

thx for your comment 👍

it sounds reasonable at first and I wonder as you used 8.3.3, I have 8.1.10 on Windows and JBT is using 8.3.11, I would expect deprecation on the highest PHP version most likely

however the point is to reproduce the problem and then see it gone after the patch 😄

avatar QuyTon QuyTon - change - 1 Mar 2025
Status Pending Ready to Commit
avatar QuyTon
QuyTon - comment - 1 Mar 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45008.

avatar muhme
muhme - comment - 1 Mar 2025

more likely to be a php version thing than an os

@brianteeman Now, I remember JBT disabling deprecated messages as they were caused the tests to fail and there were to many. Perhpas after all the fixes I can hopefully enable checking deprecated again.

avatar alikon alikon - change - 2 Mar 2025
Title
[5.x][ cypress] null coalescing operator
[5.3][ cypress] null coalescing operator
avatar alikon alikon - edited - 2 Mar 2025

Add a Comment

Login with GitHub to post a comment