simplesamlphp / saml2

SimpleSAMLphp low-level SAML2 PHP library
https://www.simplesamlphp.org
GNU Lesser General Public License v2.1
284 stars 134 forks source link

Problem with typed static property #346

Closed amarc-sudo closed 1 year ago

amarc-sudo commented 1 year ago

After an update from symfony5/php7.4 to symfony6/php8.2 I get this error, I have no idea where it comes from.

request.CRITICAL: Uncaught PHP Exception Error: "Typed static property SimpleSAML\SAML2\Compat\ContainerSingleton::$container must not be accessed before initialization" at /var/www/html/project/vendor/simplesamlphp/saml2/src/SAML2/Compat/ContainerSingleton.php line 20 {"exception":"[object] (Error(code: 0): Typed static property SimpleSAML\SAML2\Compat\ContainerSingleton::$container must not be accessed before initialization at /var/www/html/project/simplesamlphp/saml2/src/SAML2/Compat/ContainerSingleton.php:20)"}

tvdijen commented 1 year ago

You have upgraded more that just PHP+Symfony, because line 20 does not match with the latest released version of this library, so either you are running master or v5.0.0-alpha.?

amarc-sudo commented 1 year ago

Because of compatibility issues with symfony dependencies I had to use alpha versions, I use simplesamlphp/saml2 and simplesamlphp/simplesamlphp in dev version

If there's a way to solve the compatibility problems between stable and symfony 6.3, I'll take it.

tvdijen commented 1 year ago

Use the release-2.1 branch of simplesamlphp/simplesamlphp.. It's soon to be officially released. Either that, or you read the README and pray that our alpha isn't breaking anything else. But be aware; the alpha is a complete rewrite of the entire saml2-library, including an entirely new xml-security library that hasn't been pen-tested whatsoever

amarc-sudo commented 1 year ago

Thank you for the help !