Skip to content

[PHP 8.1] Fix UriHelper Automatic conversion of false to array, upstream for Joomla #36774#30

Merged
nibra merged 2 commits intojoomla-framework:1.x-devfrom
beat:patch-1
Jan 24, 2022
Merged

[PHP 8.1] Fix UriHelper Automatic conversion of false to array, upstream for Joomla #36774#30
nibra merged 2 commits intojoomla-framework:1.x-devfrom
beat:patch-1

Conversation

@beat
Copy link
Contributor

@beat beat commented Jan 23, 2022

Pull Request for Issue joomla-cms:#36774

See original discussion in:
joomla/joomla-cms#36774

Fixes Deprecated: Automatic conversion of false to array is deprecated in libraries/vendor/joomla/uri/src/UriHelper.php on line 50

Pull Request for Issue # none, directly fix proposal.

Summary of Changes

Another PHP 8.1 warning fix.

Testing Instructions

Just review code would be enough as it's obvious PHP 8.1 issue and fix.

Open admin aera in PHP 8.1, find this warning.

Actual result BEFORE applying this Pull Request

Deprecated: Automatic conversion of false to array is deprecated in libraries/vendor/joomla/uri/src/UriHelper.php on line 50

Expected result AFTER applying this Pull Request

Not that warning anymore.

Documentation Changes Required

none.

@zero-24
Copy link
Contributor

zero-24 commented Jan 23, 2022

@nibra once aproved and merged please also do a release so we can pull in the change into 3.10 with an composer update. Please ping me once done :)

@nibra
Copy link
Contributor

nibra commented Jan 24, 2022

@beat Can you please pull in the latest changes from 1.x-dev? The tests have been fixed.

@beat
Copy link
Contributor Author

beat commented Jan 24, 2022

@beat Can you please pull in the latest changes from 1.x-dev? The tests have been fixed.

@nibra done!

@nibra nibra merged commit e3968e0 into joomla-framework:1.x-dev Jan 24, 2022
@nibra
Copy link
Contributor

nibra commented Jan 24, 2022

Thank you, @beat!

Ping @zero-24

nibra added a commit that referenced this pull request Jan 25, 2022
* PHP8.1; Fix UriHelper Automatic conversion of false to array, upstream for Joomla #36774 (#30)

Co-authored-by: Michael Babker <michael.babker@gmail.com>
Co-authored-by: Hannes Papenberg <info@joomlager.de>
Co-authored-by: Robert Deutz <rdeutz@googlemail.com>
Co-authored-by: JProof <info@jproof.de>
Co-authored-by: Phil Taylor <phil@phil-taylor.com>
Co-authored-by: beat <beat@joomlapolis.com>
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.

3 participants