Updated all dependencies and prepared for PHP 8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user