Skip to content

Commit 96c4832

Browse files
authored
Release 2.0.0: PHP ^8.2, portphp ^2.0, doctrine/common ^3 (#26)
* Prepare 2.0.0: PHP ^8.2, portphp ^2.0, doctrine/common ^3 Breaking major aligned with portphp/portphp 2.0. Add Dependabot and UPGRADE-2.0.md. * Fix compatibility with portphp 2.0 / Symfony 7–8 APIs * Fix test deps: doctrine/cache 1.11 and symfony/cache for ORM Setup
1 parent 425127e commit 96c4832

4 files changed

Lines changed: 25 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 5
8+
- package-ecosystem: composer
9+
directory: /
10+
schedule:
11+
interval: monthly
12+
open-pull-requests-limit: 5
13+
versioning-strategy: widen

UPGRADE-2.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Upgrade from 1.x to 2.0
2+
3+
- Minimum PHP is **8.2** (`^8.2`).
4+
- Requires `portphp/portphp` **^2.0**.
5+
- `doctrine/common` is now **^3.0** only.

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@
2424
},
2525
"require": {
2626
"php": "^8.2",
27-
"portphp/portphp": "^1.0.0",
28-
"doctrine/common": "^2.13 || ^3.0"
27+
"portphp/portphp": "^2.0",
28+
"doctrine/common": "^3.0"
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "^9.5",
31+
"phpunit/phpunit": "^9.6",
3232
"ext-sqlite3": "*",
3333
"doctrine/cache": "^1.11",
34-
"doctrine/orm": "^2.8",
34+
"doctrine/orm": "^2.14",
3535
"doctrine/mongodb-odm": "^2.0",
36-
"doctrine/annotations": "^1.13"
36+
"doctrine/annotations": "^1.13",
37+
"symfony/cache": "^5.4 || ^6.0 || ^7.0 || ^8.0"
3738
},
3839
"autoload": {
3940
"psr-4": {

src/DoctrineWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function writeItem(array $item): void
190190
/**
191191
* Flush and clear the object manager
192192
*/
193-
public function flush()
193+
public function flush(): void
194194
{
195195
$this->objectManager->flush();
196196
$this->objectManager->clear();

0 commit comments

Comments
 (0)