Skip to content

Class ...\NullAdapter not found in .../UrlKeySetFactory #605

Closed
@nrolando

Description

@nrolando

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 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

Metadata

Metadata

Assignees

Labels

DXDependenciesPull requests that update a dependency filewontfix

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions