You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
report.CRITICAL: Error: Class "Symfony\Component\Cache\Adapter\NullAdapter" not found in /var/www/html/vendor/web-token/jwt-framework/src/Library/KeyManagement/UrlKeySetFactory.php:44
You reference and try to utilize this NullAdapter class, but yet you do not require the package that it comes from, symfony/cache. Why is that? Forgive me if I'm mistaken, but I shouldn't need to require symfony/cache myself in my own project's root composer.json. It should be required by the jwt-framework package that is utilizing it.
How to reproduce
Create a class that extends Jose\Component\KeyManagement\JKUFactory and attempt to utilize it. The JKUFactory class extends the problematic abstract class Jose\Component\KeyManagement\UrlKeySetFactory that is attempting to utilize a broken reference to Symfony\Component\Cache\Adapter\NullAdapter in its constructor.
Possible Solution
require symfony/cache in jwt-framework composer.json
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Indeed there is a missing package here.
But instead of forcing this dependency, I think I will deprecate this value in favor of the Http cache that is possible via the Http Client.
Version(s) affected
^3.4
Description
report.CRITICAL: Error: Class "Symfony\Component\Cache\Adapter\NullAdapter" not found in /var/www/html/vendor/web-token/jwt-framework/src/Library/KeyManagement/UrlKeySetFactory.php:44
You reference and try to utilize this
NullAdapter
class, but yet you do not require the package that it comes from,symfony/cache
. Why is that? Forgive me if I'm mistaken, but I shouldn't need to requiresymfony/cache
myself in my own project's root composer.json. It should be required by the jwt-framework package that is utilizing it.How to reproduce
Create a class that extends
Jose\Component\KeyManagement\JKUFactory
and attempt to utilize it. The JKUFactory class extends the problematic abstract classJose\Component\KeyManagement\UrlKeySetFactory
that is attempting to utilize a broken reference toSymfony\Component\Cache\Adapter\NullAdapter
in its constructor.Possible Solution
require
symfony/cache
in jwt-framework composer.jsonAdditional Context
No response
The text was updated successfully, but these errors were encountered: