Code development platform for open source projects from the European Union institutions

Skip to content

Suppress the PHP 8+ deprecation message that pops when APP_DEBUG=true

Pol Dellaiera requested to merge github/fork/J-Ben87/master into master

Created by: J-Ben87

This PR

  • Suppress the PHP 8+ deprecation message that pops when APP_DEBUG=true

For PHP <8 projects, the attribute #[\ReturnTypeWillChange] will be ignored as it starts with a #.

Adding this attribute allows using the bundle with PHP 8+ (without that annoying deprecation message) without breaking the compatibility with lower PHP versions.

Merge request reports