ecphp / cas-bundle

CAS Bundle, a standard Symfony bundle for authentication using CAS protocol.
https://ecphp-cas-bundle.readthedocs.io
BSD 3-Clause "New" or "Revised" License
43 stars 9 forks source link

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

Closed J-Ben87 closed 2 years ago

J-Ben87 commented 2 years ago

This PR

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.