Skip to content

Modernize for PHP 8.1 with strict types and defensive guards - #29

Merged
retlehs merged 1 commit into
masterfrom
refactor/php-8.1-modernization
Mar 9, 2026
Merged

retlehs merged 1 commit into
masterfrom
refactor/php-8.1-modernization

Conversation

@retlehs

@retlehs retlehs commented Mar 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Add strict property and method type declarations
  • Guard multisite_url() against null/false from wp_parse_url() and preg_replace()
  • Safeguard $_SERVER['REQUEST_URI'] access with isset check and string cast
  • Escape filterable color values with esc_attr() in CSS output
  • Enforce array type on $stages property with fallback after maybe_unserialize()

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@retlehs retlehs self-assigned this Mar 9, 2026
@retlehs
retlehs merged commit 733b45e into master Mar 9, 2026
5 checks passed
@retlehs
retlehs deleted the refactor/php-8.1-modernization branch March 9, 2026 21:24
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.

1 participant