File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 }
1111 ],
1212 "require" : {
13+ "composer-runtime-api" : " ^2.0" ,
1314 "php" : " >=8.2" ,
1415 "ext-json" : " *" ,
15- "composer/package-versions-deprecated" : " ^1.8" ,
1616 "phpdocumentor/reflection-docblock" : " ^5.4" ,
1717 "phpdocumentor/type-resolver" : " ^1.7" ,
1818 "psr/container" : " ^1.1 || ^2" ,
6464 },
6565 "config" : {
6666 "allow-plugins" : {
67- "composer/package-versions-deprecated" : true ,
6867 "dealerdirect/phpcodesniffer-composer-installer" : true ,
6968 "phpstan/extension-installer" : true
7069 },
Original file line number Diff line number Diff line change 44
55namespace TheCodingMachine \GraphQLite ;
66
7+ use Composer \InstalledVersions ;
78use GraphQL \Type \SchemaConfig ;
89use Kcs \ClassFinder \FileFinder \CachedFileFinder ;
910use Kcs \ClassFinder \FileFinder \DefaultFileFinder ;
1011use Kcs \ClassFinder \Finder \ComposerFinder ;
1112use Kcs \ClassFinder \Finder \FinderInterface ;
12- use PackageVersions \Versions ;
1313use Psr \Container \ContainerInterface ;
1414use Psr \SimpleCache \CacheInterface ;
1515use Symfony \Component \Cache \Adapter \ArrayAdapter ;
@@ -141,7 +141,7 @@ public function __construct(
141141 private readonly ContainerInterface $ container ,
142142 private ClassBoundCache |null $ classBoundCache = null ,
143143 ) {
144- $ this ->cacheNamespace = substr (md5 (Versions ::getVersion ('thecodingmachine/graphqlite ' )), 0 , 8 );
144+ $ this ->cacheNamespace = substr (md5 (InstalledVersions ::getVersion ('thecodingmachine/graphqlite ' ) ?? '' ), 0 , 8 );
145145 }
146146
147147 /**
Original file line number Diff line number Diff line change 44
55namespace TheCodingMachine \GraphQLite \Utils ;
66
7+ use Composer \InstalledVersions ;
78use DateInterval ;
8- use PackageVersions \Versions ;
99use Psr \SimpleCache \CacheInterface ;
1010use Psr \SimpleCache \InvalidArgumentException ;
1111use function md5 ;
@@ -22,7 +22,7 @@ class NamespacedCache implements CacheInterface
2222
2323 public function __construct (private readonly CacheInterface $ cache )
2424 {
25- $ this ->namespace = substr (md5 (Versions ::getVersion ('thecodingmachine/graphqlite ' )), 0 , 8 );
25+ $ this ->namespace = substr (md5 (InstalledVersions ::getVersion ('thecodingmachine/graphqlite ' ) ?? '' ), 0 , 8 );
2626 }
2727
2828 /**
You can’t perform that action at this time.
0 commit comments