Skip to content

[3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible#36794

Merged
zero-24 merged 3 commits intojoomla:3.10-devfrom
beat:patch-18
Jan 23, 2022
Merged

[3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible#36794
zero-24 merged 3 commits intojoomla:3.10-devfrom
beat:patch-18

Conversation

@beat
Copy link
Copy Markdown
Contributor

@beat beat commented Jan 22, 2022

Pull Request for Issue # none

Summary of Changes

Fixes Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 101 and a few more (line 35, line 53, line 115)
and same in Protostar and Beez modules.php

Testing Instructions

Code review.

Or see front-end with PHP 8.1, debug ON, and all PHP errors on.

Actual result BEFORE applying this Pull Request

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 101
and in some other cases:
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 35
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 53
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 115

Expected result AFTER applying this Pull Request

not those warnings anymore.

Documentation Changes Required

None.

…tible

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 101` and a few more (line 35, line 53, line 115)
@beat beat changed the title [3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible WIP: [3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible Jan 22, 2022
@beat
Copy link
Copy Markdown
Contributor Author

beat commented Jan 22, 2022

Making WIP, protostar has same issue, maybe beez too,more commits coming.

beat added 2 commits January 23, 2022 00:26
Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/protostar/html/modules.php on line 47`
Fixes errors like `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in templates/beez/html/modules.php on line 42`
@beat beat changed the title WIP: [3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible [3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible Jan 22, 2022
@beat
Copy link
Copy Markdown
Contributor Author

beat commented Jan 22, 2022

Removed WIP, ready for review.

@alikon alikon added the PHP 8.x PHP 8.x deprecated issues label Jan 23, 2022
@alikon
Copy link
Copy Markdown
Contributor

alikon commented Jan 23, 2022

I have tested this item ✅ successfully on fcd5647


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

@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on fcd5647

Code review.


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

@richard67
Copy link
Copy Markdown
Member

RTC


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

@richard67 richard67 removed the PHP 8.x PHP 8.x deprecated issues label Jan 23, 2022
@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 23, 2022
@richard67 richard67 added the PHP 8.x PHP 8.x deprecated issues label Jan 23, 2022
@zero-24 zero-24 added this to the Joomla 3.10.6 milestone Jan 23, 2022
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jan 23, 2022

Merging thanks :)

@zero-24 zero-24 merged commit 61396f7 into joomla:3.10-dev Jan 23, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PHP 8.x PHP 8.x deprecated issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants