Skip to content

Upgrade PHP compatibility from 7.4 to 8.0#1281

Open
alekssamos wants to merge 1 commit into
vrana:masterfrom
alekssamos:php8
Open

Upgrade PHP compatibility from 7.4 to 8.0#1281
alekssamos wants to merge 1 commit into
vrana:masterfrom
alekssamos:php8

Conversation

@alekssamos
Copy link
Copy Markdown

  • Update composer.json PHP requirement to >=8.0
  • Remove legacy mysql extension code (removed in PHP 7.0)
  • Remove magic_quotes_runtime handling (removed in PHP 8.0)
  • Replace deprecated utf8_encode/utf8_decode with preg_match and mb_strlen
  • Fix curly brace string interpolation (removed in PHP 8.0)
  • Use PGSQL_NOTICE_ALL and PGSQL_NOTICE_CLEAR constants instead of magic numbers
  • Add return type declarations to mysqli overrides (required in PHP 8.1+)
  • Update phpstan.neon for PHP 8 target

- Update composer.json PHP requirement to >=8.0
- Remove legacy mysql extension code (removed in PHP 7.0)
- Remove magic_quotes_runtime handling (removed in PHP 8.0)
- Replace deprecated utf8_encode/utf8_decode with preg_match and mb_strlen
- Fix curly brace string interpolation (removed in PHP 8.0)
- Use PGSQL_NOTICE_ALL and PGSQL_NOTICE_CLEAR constants instead of magic numbers
- Add return type declarations to mysqli overrides (required in PHP 8.1+)
- Update phpstan.neon for PHP 8 target
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