Opened 8 months ago
Closed 8 months ago
#7421 closed defect (bug) (fixed)
PHP Deprecated notice in Readme Parser
Reported by: | rabmalin | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
PHP: 8.2
When checked with minimal text file, $line
could be empty. So PHP notice is generated.
Example error message for reference:
Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-content/plugins/plugin-check/vendor/afragen/wordpress-plugin-readme-parser/class-parser.php on line 247 Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-content/plugins/plugin-check/vendor/afragen/wordpress-plugin-readme-parser/class-parser.php on line 247
Sample readme file:
=== Hello World ===
Change History (1)
Note: See
TracTickets for help on using
tickets.
In 13148: