simplesamlphp/saml2

Error: Typed static property SimpleSAML\SAML2\Compat\ContainerSingleton::$container must not be accessed before initialization

meschenbaum opened this issue · 2 comments

Getting Type error on latest v5.0.0-alpha.4 branch.

Error: Typed static property SimpleSAML\SAML2\Compat\ContainerSingleton::$container must not be accessed before initialization in SimpleSAML\SAML2\Compat\ContainerSingleton::getInstance() (line 22 of /code/vendor/simplesamlphp/saml2/src/SAML2/Compat/ContainerSingleton.php).

How is this a TypeError? And do you get the same error with 4.6.8?

You have to set a container before using it. It's a bug in your application.

PS: You really shouldn't be opening issues over alpha-versions.. It's alpha for a reason, and the interface between major versions will be different. Wait for a final 5.x release and read the upgrade notes that will come with it.