Skip to content

Commit

Permalink
Bump several Doctrine dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Jan 1, 2023
1 parent 77633b8 commit b265dc5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
tests/phpunit.xml
phpunit.xml
.phpunit.result.cache
/cli-config.php
jackrabbit/
vendor/
Expand Down
4 changes: 3 additions & 1 deletion bin/phpcrodm.php
Expand Up @@ -21,7 +21,9 @@

use Doctrine\Common\Annotations\AnnotationRegistry;

AnnotationRegistry::registerLoader([$autoload, 'loadClass']);
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
AnnotationRegistry::registerLoader([$autoload, 'loadClass']);
}

$configFile = getcwd().DIRECTORY_SEPARATOR.'cli-config.php';

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -14,11 +14,11 @@
"prefer-stable": true,
"require": {
"php": "^7.1 || ^8.0",
"doctrine/collections": "^1.0",
"doctrine/collections": "^1.0 || ^2.0",
"doctrine/common": "^2.4 || ^3.0",
"doctrine/annotations": "^1.2",
"doctrine/annotations": "^1.2 || ^2.0",
"doctrine/data-fixtures": "^1.0",
"doctrine/event-manager": "^1.0",
"doctrine/event-manager": "^1.0 || ^2.0",
"doctrine/persistence": "^1.3.7 || ^2.0",
"phpcr/phpcr": "^2.1.1",
"phpcr/phpcr-implementation": "^2.1",
Expand Down
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Expand Up @@ -16,4 +16,6 @@

use Doctrine\Common\Annotations\AnnotationRegistry;

AnnotationRegistry::registerLoader([$autoload, 'loadClass']);
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
AnnotationRegistry::registerLoader([$autoload, 'loadClass']);
}

0 comments on commit b265dc5

Please sign in to comment.