Skip to content

Commit fec37f2

Browse files
committed
Bump the requirements to PHP 8.1
1 parent 8264aad commit fec37f2

File tree

506 files changed

+1597
-3791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

506 files changed

+1597
-3791
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
php-version:
27-
- "7.4"
28-
- "8.0"
2927
- "8.1"
3028
- "8.2"
3129
- "8.3"
@@ -38,20 +36,20 @@ jobs:
3836
- ""
3937
include:
4038
- deps: "lowest"
41-
php-version: "7.4"
39+
php-version: "8.1"
4240
- deps: "highest"
4341
php-version: "8.4"
4442
# Run builds on low and high PHP versions with `doctrine/annotations` removed
4543
- deps: "highest"
46-
php-version: "7.4"
44+
php-version: "8.1"
4745
no-annotations: true
4846
- deps: "highest"
4947
php-version: "8.4"
5048
no-annotations: true
5149
# Run builds on high PHP version with `doctrine/orm` version pinned
5250
- deps: "highest"
5351
php-version: "8.4"
54-
orm: "^2.14"
52+
orm: "^2.20"
5553
- deps: "highest"
5654
php-version: "8.4"
5755
orm: "^3.0"
@@ -109,7 +107,7 @@ jobs:
109107
- name: "Install PHP"
110108
uses: "shivammathur/setup-php@v2"
111109
with:
112-
php-version: "8.2"
110+
php-version: "8.4"
113111
extensions: mongodb
114112

115113
- name: "Install dependencies with Composer"

.php-cs-fixer.dist.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
3232
->setRules([
3333
'@DoctrineAnnotation' => true,
34-
'@PHP74Migration' => true,
35-
'@PHP74Migration:risky' => true,
34+
'@PHP81Migration' => true,
35+
'@PHP80Migration:risky' => true,
3636
'@PHPUnit91Migration:risky' => true,
3737
'@PSR2' => true,
3838
'@Symfony' => true,
@@ -78,6 +78,7 @@
7878
'random_api_migration' => true,
7979
'return_assignment' => true,
8080
'self_accessor' => true,
81+
'single_line_empty_body' => true,
8182
'static_lambda' => true,
8283
'strict_param' => true,
8384
'ternary_to_null_coalescing' => true,

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ a release.
2121
### Added
2222
- IP address provider for use with extensions with IP address references (#2928)
2323

24+
### Changed
25+
- Dropped support for PHP < 8.1
26+
2427
## [3.19.0] - 2025-02-24
2528
### Added
2629
- Actor provider for use with extensions with user references (#2914)

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@
4040
"wiki": "https://github.com/Atlantic18/DoctrineExtensions/tree/main/doc"
4141
},
4242
"require": {
43-
"php": "^7.4 || ^8.0",
44-
"behat/transliterator": "^1.2",
45-
"doctrine/collections": "^1.2 || ^2.0",
43+
"php": "^8.1",
44+
"behat/transliterator": "^1.3",
45+
"doctrine/collections": "^1.6.5 || ^2.0",
4646
"doctrine/deprecations": "^1.0",
4747
"doctrine/event-manager": "^1.2 || ^2.0",
48-
"doctrine/persistence": "^2.2 || ^3.0 || ^4.0",
48+
"doctrine/persistence": "^2.5.2 || ^3.0 || ^4.0",
4949
"psr/cache": "^1 || ^2 || ^3",
5050
"psr/clock": "^1",
5151
"symfony/cache": "^5.4 || ^6.0 || ^7.0"
5252
},
5353
"require-dev": {
54-
"doctrine/annotations": "^1.13 || ^2.0",
55-
"doctrine/cache": "^1.11 || ^2.0",
56-
"doctrine/common": "^2.13 || ^3.0",
54+
"doctrine/annotations": "^1.14 || ^2.0",
55+
"doctrine/cache": "^1.12.1 || ^2.0",
56+
"doctrine/common": "^3.1",
5757
"doctrine/dbal": "^3.7 || ^4.0",
5858
"doctrine/doctrine-bundle": "^2.3",
5959
"doctrine/mongodb-odm": "^2.3",
@@ -72,8 +72,8 @@
7272
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"
7373
},
7474
"conflict": {
75-
"doctrine/annotations": "<1.13 || >=3.0",
76-
"doctrine/common": "<2.13 || >=4.0",
75+
"doctrine/annotations": "<1.14 || >=3.0",
76+
"doctrine/common": "<3.1 || >=4.0",
7777
"doctrine/dbal": "<3.7 || >=5.0",
7878
"doctrine/mongodb-odm": "<2.3 || >=3.0",
7979
"doctrine/orm": "<2.20 || >=3.0 <3.3 || >=4.0"

example/app/Command/PrintCategoryTranslationTreeCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
1919
use Gedmo\Translatable\Query\TreeWalker\TranslationWalker;
2020
use Gedmo\Translatable\TranslatableListener;
21+
use Symfony\Component\Console\Attribute\AsCommand;
2122
use Symfony\Component\Console\Command\Command;
2223
use Symfony\Component\Console\Input\InputInterface;
2324
use Symfony\Component\Console\Output\OutputInterface;
2425

26+
#[AsCommand(name: 'app:print-category-translation-tree', description: 'Seeds an example category tree with translations and prints the tree.')]
2527
final class PrintCategoryTranslationTreeCommand extends Command
2628
{
27-
protected static $defaultName = 'app:print-category-translation-tree';
28-
protected static $defaultDescription = 'Seeds an example category tree with translations and prints the tree.';
29-
3029
protected function execute(InputInterface $input, OutputInterface $output): int
3130
{
3231
/** @var EntityManagerHelper $helper */

0 commit comments

Comments
 (0)