Updated all dependencies and prepared for PHP 8

This commit is contained in:
2026-06-19 09:37:22 +00:00
parent 941c9104dc
commit 5f9f6ca2ff
21 changed files with 3334 additions and 2643 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ use DI\Container, DI\FactoryInterface, Invoker\InvokerInterface;
use DI\Definition\Source\DefinitionArray, DI\Definition\Source\SourceChain;
use Psr\Http\Message\RequestInterface;
use CloudObjects\SDK\ObjectRetriever, CloudObjects\SDK\COIDParser,
CloudObjects\SDK\NodeReader;
CloudObjects\SDK\NodeReader, CloudObjects\SDK\Constants;
use CloudObjects\PhpMAE\Exceptions\PhpMAEException;
class ClassRepository {
@@ -147,8 +147,8 @@ class ClassRepository {
$objectRetriever = $this->container->get(ObjectRetriever::class);
// Get revision
$revision = $object->getProperty(ObjectRetriever::REVISION_PROPERTY)
? $object->getProperty(ObjectRetriever::REVISION_PROPERTY)->getValue()
$revision = $object->getProperty(Constants::PROPERTY_REVISION)
? $object->getProperty(Constants::PROPERTY_REVISION)->getValue()
: 'LocalConfig';
// Build filename where cached version should exist
@@ -265,7 +265,7 @@ class ClassRepository {
else
$sourceCode = $objectRetriever->getAttachment($uri, $sourceUrl->getValue());
}
// Run source code through validator to ensure sanity
$validator = new ClassValidator;
$validator->validateInterface($sourceCode, $uri);