[5.4] Pre-Update Check: Show correct php_minimum required version#45911
Merged
muhme merged 3 commits intojoomla:5.4-devfrom Aug 15, 2025
Merged
[5.4] Pre-Update Check: Show correct php_minimum required version#45911muhme merged 3 commits intojoomla:5.4-devfrom
muhme merged 3 commits intojoomla:5.4-devfrom
Conversation
To return the value of php_minimum from the updateInformation['object'], you need to access the php_minimum property correctly. Since php_minimum is a protected property of the Update object, you cannot access it directly using $updateInformation['object']->php_minimum. Instead, you need to use the get() method provided by the Update class. Signed-off-by: BrianTeeman <brian@teeman.net>
Contributor
Member
@brianteeman We would also check it carefully if it WAS your code 😛 |
Member
|
I have tested this item ✅ successfully on a0a067b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45911. |
Member
|
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45911. |
Member
|
I have tested this item ✅ successfully on 638a858 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45911. |
|
I have tested this item ✅ successfully on 638a858 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45911. |
Contributor
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45911. |
Contributor
|
Final Test before merge, JBT recrate/php/graft
Notes:
|
Contributor
|
Thank you @brianteeman for your contribution. Thank you @heelc29 for your support. Thank you @exlemor and @richard67 for testing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue #45907 .
Summary of Changes
To return the value of php_minimum from the updateInformation['object'], you need to access the php_minimum property correctly. Since php_minimum is a protected property of the Update object, you cannot access it directly using $updateInformation['object']->php_minimum. Instead, you need to use the get() method provided by the Update class.
So basically the code was always returning the hard coded php_minimum for the current joomla version and not getting the information for the next version in the xml
Testing Instructions
To see this you need to set the update server url to https://update.joomla.org/core/nightlies/next_major_list.xml
Code reviewers - not my code so please check it carefully
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
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