I have a sample script working just fine in a plain test.php file, because I wanted to make sure it worked before I integrated it into my Symfony project. But transplanting the code is giving me this error:
Attempted to load class "CachedKeySet" from namespace "Firebase\JWT".
Did you forget a "use" statement for another namespace?
Long story short, I've resorted to step-debugging through composer's autoloader to try and find out why CachedKeySet is invisible.
I have a sample script working just fine in a plain
test.php
file, because I wanted to make sure it worked before I integrated it into my Symfony project. But transplanting the code is giving me this error:Long story short, I've resorted to step-debugging through composer's autoloader to try and find out why CachedKeySet is invisible.
These lines appear in
autoload_static.php
:Similar lines in
autoload_classmap.php
:And primarily where I would expect to find it, in
autoload_psr4.php
:But at the point where it attempts to actually load the file, it comes up missing. In composer's ClassLoader, there's this code:
There's no element in
prefixLengthsPsr4['F']
and so it bails immediately and never loads.Any clues?