Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
}
],
"require": {
"composer-runtime-api": "^2.0",
"php": ">=8.2",
"ext-json": "*",
"composer/package-versions-deprecated": "^1.8",
"phpdocumentor/reflection-docblock": "^5.4",
"phpdocumentor/type-resolver": "^1.7",
"psr/container": "^1.1 || ^2",
Expand Down Expand Up @@ -64,7 +64,6 @@
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
Expand Down
4 changes: 2 additions & 2 deletions src/SchemaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace TheCodingMachine\GraphQLite;

use Composer\InstalledVersions;
use GraphQL\Type\SchemaConfig;
use Kcs\ClassFinder\FileFinder\CachedFileFinder;
use Kcs\ClassFinder\FileFinder\DefaultFileFinder;
use Kcs\ClassFinder\Finder\ComposerFinder;
use Kcs\ClassFinder\Finder\FinderInterface;
use PackageVersions\Versions;
use Psr\Container\ContainerInterface;
use Psr\SimpleCache\CacheInterface;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
Expand Down Expand Up @@ -141,7 +141,7 @@ public function __construct(
private readonly ContainerInterface $container,
private ClassBoundCache|null $classBoundCache = null,
) {
$this->cacheNamespace = substr(md5(Versions::getVersion('thecodingmachine/graphqlite')), 0, 8);
$this->cacheNamespace = substr(md5(InstalledVersions::getVersion('thecodingmachine/graphqlite') ?? ''), 0, 8);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Utils/NamespacedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TheCodingMachine\GraphQLite\Utils;

use Composer\InstalledVersions;
use DateInterval;
use PackageVersions\Versions;
use Psr\SimpleCache\CacheInterface;
use Psr\SimpleCache\InvalidArgumentException;
use function md5;
Expand All @@ -22,7 +22,7 @@ class NamespacedCache implements CacheInterface

public function __construct(private readonly CacheInterface $cache)
{
$this->namespace = substr(md5(Versions::getVersion('thecodingmachine/graphqlite')), 0, 8);
$this->namespace = substr(md5(InstalledVersions::getVersion('thecodingmachine/graphqlite') ?? ''), 0, 8);
}

/**
Expand Down
Loading