netglue/prismic-php-kit

View on GitHub
src/Prismic/Cache/DefaultCache.php

Summary

Maintainability
A
0 mins
Test Coverage
D
62%

Call to method __construct from undeclared class \Symfony\Component\Cache\Adapter\ApcuAdapter
Open

        return new ApcuAdapter(\str_replace('\\', '', __NAMESPACE__));
Severity: Critical
Found in src/Prismic/Cache/DefaultCache.php by phan

Call to method __construct from undeclared class \Symfony\Component\Cache\Adapter\ArrayAdapter
Open

        return new ArrayAdapter();
Severity: Critical
Found in src/Prismic/Cache/DefaultCache.php by phan

Returning type \Symfony\Component\Cache\Adapter\ApcuAdapter but getApcCache() is declared to return \Psr\Cache\CacheItemPoolInterface
Open

        return new ApcuAdapter(\str_replace('\\', '', __NAMESPACE__));
Severity: Minor
Found in src/Prismic/Cache/DefaultCache.php by phan

Return type of getArrayCache() is undeclared type \Psr\Cache\CacheItemPoolInterface
Open

    public static function getArrayCache() : CacheItemPoolInterface
Severity: Minor
Found in src/Prismic/Cache/DefaultCache.php by phan

Return type of factory() is undeclared type \Psr\Cache\CacheItemPoolInterface
Open

    public static function factory() : CacheItemPoolInterface
Severity: Minor
Found in src/Prismic/Cache/DefaultCache.php by phan

Returning type \Symfony\Component\Cache\Adapter\ArrayAdapter but getArrayCache() is declared to return \Psr\Cache\CacheItemPoolInterface
Open

        return new ArrayAdapter();
Severity: Minor
Found in src/Prismic/Cache/DefaultCache.php by phan

Return type of getApcCache() is undeclared type \Psr\Cache\CacheItemPoolInterface
Open

    public static function getApcCache() : CacheItemPoolInterface
Severity: Minor
Found in src/Prismic/Cache/DefaultCache.php by phan

There are no issues that match your filters.

Category
Status