Error: Typed static property SimpleSAML\SAML2\Compat\ContainerSingleton::$container must not be accessed before initialization
meschenbaum opened this issue · 2 comments
meschenbaum commented
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).
tvdijen commented
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.
meschenbaum commented
There were changes pushed out the last couple of weeks for this branch,
which may have introduced the error.
https://github.com/simplesamlphp/saml2/commits/release-5.x/src/SAML2/Compat/ContainerSingleton.php
Specifically, Type Hinting:
8d698f5#diff-58b4b26f8609c397ad382d43fab02c242c08a70f6716478c1193ced77863d7f0
cheers,
matt
…On Tue, May 16, 2023 at 4:57 PM Tim van Dijen ***@***.***> wrote:
Closed #334 <#334> as
completed.
—
Reply to this email directly, view it on GitHub
<#334 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABT556GOR7BHXLBWMR6PZFTXGQA63ANCNFSM6AAAAAAYEIYAAE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>