diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f7b8104 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 5 + - package-ecosystem: composer + directory: / + schedule: + interval: monthly + open-pull-requests-limit: 5 + versioning-strategy: widen diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md new file mode 100644 index 0000000..603f8e8 --- /dev/null +++ b/UPGRADE-2.0.md @@ -0,0 +1,5 @@ +# Upgrade from 1.x to 2.0 + +- Minimum PHP is **8.2** (`^8.2`). +- Requires `portphp/portphp` **^2.0**. +- `doctrine/common` is now **^3.0** only. diff --git a/composer.json b/composer.json index c776fe9..3a97b18 100644 --- a/composer.json +++ b/composer.json @@ -24,16 +24,17 @@ }, "require": { "php": "^8.2", - "portphp/portphp": "^1.0.0", - "doctrine/common": "^2.13 || ^3.0" + "portphp/portphp": "^2.0", + "doctrine/common": "^3.0" }, "require-dev": { - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^9.6", "ext-sqlite3": "*", "doctrine/cache": "^1.11", - "doctrine/orm": "^2.8", + "doctrine/orm": "^2.14", "doctrine/mongodb-odm": "^2.0", - "doctrine/annotations": "^1.13" + "doctrine/annotations": "^1.13", + "symfony/cache": "^5.4 || ^6.0 || ^7.0 || ^8.0" }, "autoload": { "psr-4": { diff --git a/src/DoctrineWriter.php b/src/DoctrineWriter.php index aa6cbb5..3476718 100644 --- a/src/DoctrineWriter.php +++ b/src/DoctrineWriter.php @@ -190,7 +190,7 @@ public function writeItem(array $item): void /** * Flush and clear the object manager */ - public function flush() + public function flush(): void { $this->objectManager->flush(); $this->objectManager->clear();