Skip to content

Conversation

@Quix0r
Copy link

@Quix0r Quix0r commented Nov 21, 2025

This PR contains changes towards PHP8 compatibility:

  • Function each() is no longer available, also checking an assignment of a value/reference should not be done anymore
  • added many type-hints
  • Used "new" way []for arrays instead ofarray()`
  • Arrays now nicer formatted

- <include|require[_once]> are no functions, they are keywords, so don't use
  braces () to make them look like functions
- converted old-style array() initialization into "new" [] way
- added primitive type-hints
- changed {} into [] braces
- removed get_magic_quotes_gpc() as it has been removed, maybe sanitizing your
  input is a bad idea
- PHP function `each()` is outdated, also an `if ($foo = bar())` should not be
  done anymore
- type-hints added
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