Skip to content

Commit 178a002

Browse files
maMykolaSonataCIVincentLangletdmaicher
authored
Merge upstream 1.23.0 (#7)
* DevKit updates for 1.x branch (sonata-project#656) Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr> * Better way to deal with deprecations (sonata-project#658) * Add support for `doctrine/persistence` 4 (sonata-project#660) * prepare release 1.21.0 (sonata-project#661) * Provide PHP routing file and deprecate loading XML file (sonata-project#662) * Update CHANGELOG for version 1.22.0 (sonata-project#664) * DevKit updates * run rector * DevKit updates * DevKit updates * Add support for Symfony 8 * Update CHANGELOG for version 1.23.0 * Fix double semicolon syntax error in LogRevisionsListener * Reorder and ensure `ext-pdo` is properly listed in `composer.json` dependencies * Fix RelationTest assertions to reflect updated collection counts * Fix PHPStan error: replace empty() with strict count comparison --------- Co-authored-by: Sonata CI <thomas+ci@sonata-project.org> Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr> Co-authored-by: Vincent Langlet <VincentLanglet@users.noreply.github.com> Co-authored-by: David Maicher <mail@dmaicher.de>
1 parent bf94ef3 commit 178a002

52 files changed

Lines changed: 234 additions & 316 deletions

Some content is hidden

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

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ rector.php export-ignore
1111
phpstan.neon.dist export-ignore
1212
phpstan-baseline.neon export-ignore
1313
phpstan-console-application.php export-ignore
14-
psalm.xml export-ignore
15-
psalm-baseline.xml export-ignore

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install PHP with extensions
3030
uses: shivammathur/setup-php@v2
3131
with:
32-
php-version: '8.4'
32+
php-version: '8.5'
3333
coverage: none
3434
tools: composer:v2
3535

@@ -53,7 +53,7 @@ jobs:
5353
- name: Install PHP with extensions
5454
uses: shivammathur/setup-php@v2
5555
with:
56-
php-version: '8.4'
56+
php-version: '8.5'
5757
coverage: none
5858
tools: composer:v2, composer-normalize:2
5959
env:

.github/workflows/qa.yaml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install PHP with extensions
3030
uses: shivammathur/setup-php@v2
3131
with:
32-
php-version: '8.4'
32+
php-version: '8.5'
3333
coverage: none
3434
tools: composer:v2
3535

@@ -41,30 +41,6 @@ jobs:
4141
- name: PHPStan
4242
run: vendor/bin/phpstan --no-progress --memory-limit=1G analyse --error-format=github
4343

44-
psalm:
45-
name: Psalm
46-
47-
runs-on: ubuntu-latest
48-
49-
steps:
50-
- name: Checkout code
51-
uses: actions/checkout@v4
52-
53-
- name: Install PHP with extensions
54-
uses: shivammathur/setup-php@v2
55-
with:
56-
php-version: '8.4'
57-
coverage: none
58-
tools: composer:v2
59-
60-
- name: Install Composer dependencies (highest)
61-
uses: ramsey/composer-install@v3
62-
with:
63-
dependency-versions: highest
64-
65-
- name: Psalm
66-
run: vendor/bin/psalm --no-progress --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.4
67-
6844
rector:
6945
name: Rector
7046

@@ -77,7 +53,7 @@ jobs:
7753
- name: Install PHP with extensions
7854
uses: shivammathur/setup-php@v2
7955
with:
80-
php-version: '8.4'
56+
php-version: '8.5'
8157
coverage: none
8258
tools: composer:v2
8359

.github/workflows/test-platforms.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
strategy:
3838
matrix:
3939
php-version:
40-
- '8.4'
40+
- '8.5'
4141
mysql-version:
42-
- '5.7'
4342
- '8.0'
43+
- '8.4'
4444
dependencies: [highest]
4545
allowed-to-fail: [false]
4646

@@ -90,7 +90,7 @@ jobs:
9090
strategy:
9191
matrix:
9292
php-version:
93-
- '8.4'
93+
- '8.5'
9494
postgres-version:
9595
- '13'
9696
- '14'

.github/workflows/test.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,39 @@ jobs:
3030
strategy:
3131
matrix:
3232
php-version:
33-
- '8.1'
3433
- '8.2'
3534
- '8.3'
3635
- '8.4'
36+
- '8.5'
3737
dependencies: [highest]
3838
allowed-to-fail: [false]
3939
symfony-require: ['']
4040
variant: [normal]
4141
include:
42-
- php-version: '8.1'
42+
- php-version: '8.2'
4343
dependencies: lowest
4444
allowed-to-fail: false
4545
variant: normal
46-
- php-version: '8.4'
46+
- php-version: '8.5'
4747
dependencies: highest
4848
allowed-to-fail: false
4949
symfony-require: 6.4.*
5050
variant: symfony/symfony:"6.4.*"
51-
- php-version: '8.4'
51+
- php-version: '8.5'
5252
dependencies: highest
5353
allowed-to-fail: false
54-
symfony-require: 7.1.*
55-
variant: symfony/symfony:"7.1.*"
56-
- php-version: '8.4'
54+
symfony-require: 7.3.*
55+
variant: symfony/symfony:"7.3.*"
56+
- php-version: '8.5'
5757
dependencies: highest
5858
allowed-to-fail: false
59-
symfony-require: 7.2.*
60-
variant: symfony/symfony:"7.2.*"
59+
symfony-require: 7.4.*
60+
variant: symfony/symfony:"7.4.*"
61+
- php-version: '8.5'
62+
dependencies: highest
63+
allowed-to-fail: false
64+
symfony-require: 8.0.*
65+
variant: symfony/symfony:"8.0.*"
6166

6267
steps:
6368
- name: Checkout

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ composer.lock
1010
phpunit.xml
1111
phpstan.neon
1212
/.phpunit.result.cache
13+
tests/App/config/reference.php

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [1.23.0](https://github.com/sonata-project/EntityAuditBundle/compare/1.22.0...1.23.0) - 2025-12-01
6+
### Added
7+
- [[#663](https://github.com/sonata-project/EntityAuditBundle/pull/663)] Support for Symfony 8 ([@dmaicher](https://github.com/dmaicher))
8+
9+
### Removed
10+
- [[#663](https://github.com/sonata-project/EntityAuditBundle/pull/663)] Support for PHP 8.1 ([@dmaicher](https://github.com/dmaicher))
11+
- [[#663](https://github.com/sonata-project/EntityAuditBundle/pull/663)] Support for Symfony 7.1 and 7.2 ([@dmaicher](https://github.com/dmaicher))
12+
13+
## [1.22.0](https://github.com/sonata-project/EntityAuditBundle/compare/1.21.0...1.22.0) - 2025-10-18
14+
### Added
15+
- [[#662](https://github.com/sonata-project/EntityAuditBundle/pull/662)] Added `audit.php` routing config ([@dmaicher](https://github.com/dmaicher))
16+
17+
### Deprecated
18+
- [[#662](https://github.com/sonata-project/EntityAuditBundle/pull/662)] Deprecated `audit.xml` routing config ([@dmaicher](https://github.com/dmaicher))
19+
20+
## [1.21.0](https://github.com/sonata-project/EntityAuditBundle/compare/1.20.0...1.21.0) - 2025-10-12
21+
### Added
22+
- [[#660](https://github.com/sonata-project/EntityAuditBundle/pull/660)] - Add support for `doctrine/persistence` 4 ([@dmaicher](https://github.com/dmaicher))
23+
524
## [1.20.0](https://github.com/sonata-project/EntityAuditBundle/compare/1.19.0...1.20.0) - 2025-08-06
625
### Added
726
- [[#652](https://github.com/sonata-project/EntityAuditBundle/pull/652)] Support for doctrine/dbal 4 ([@valkars](https://github.com/valkars))

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ phpstan:
9393
vendor/bin/phpstan --memory-limit=1G analyse
9494
.PHONY: phpstan
9595

96-
psalm:
97-
vendor/bin/psalm --php-version=8.4
98-
.PHONY: psalm
99-
10096
rector:
10197
vendor/bin/rector
10298
.PHONY: rector

composer.json

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,46 @@
99
"Audit"
1010
],
1111
"require": {
12-
"php": "8.3.*",
12+
"php": "^8.2",
13+
"ext-pdo": "*",
1314
"doctrine/collections": "^1.8 || ^2.0",
1415
"doctrine/dbal": "^3.6 || ^4.0",
1516
"doctrine/event-manager": "^1.2 || ^2.0",
1617
"doctrine/orm": "^2.14 || ^3.0",
17-
"doctrine/persistence": "^3.0",
18+
"doctrine/persistence": "^3.0 || ^4.0",
1819
"psr/clock": "^1.0",
19-
"symfony/config": "^6.4 || ^7.1",
20-
"symfony/dependency-injection": "^6.4 || ^7.1",
21-
"symfony/http-kernel": "^6.4 || ^7.1",
22-
"symfony/security-core": "^6.4 || ^7.1",
23-
"twig/twig": "^3.0",
24-
"ext-pdo": "*"
20+
"symfony/config": "^6.4 || ^7.3 || ^8.0",
21+
"symfony/dependency-injection": "^6.4 || ^7.3 || ^8.0",
22+
"symfony/http-kernel": "^6.4 || ^7.3 || ^8.0",
23+
"symfony/security-core": "^6.4 || ^7.3 || ^8.0",
24+
"twig/twig": "^3.0"
2525
},
2626
"require-dev": {
27-
"doctrine/doctrine-bundle": "^2.7",
28-
"doctrine/doctrine-fixtures-bundle": "^3.4",
27+
"doctrine/doctrine-bundle": "^2.17 || ^3.0",
28+
"doctrine/doctrine-fixtures-bundle": "^4.2",
2929
"friendsofphp/php-cs-fixer": "^3.4",
3030
"gedmo/doctrine-extensions": "^3.15",
31-
"matthiasnoback/symfony-dependency-injection-test": "^4.2.1 || ^5.0",
31+
"matthiasnoback/symfony-dependency-injection-test": "^6.2",
3232
"phpstan/extension-installer": "^1.1",
3333
"phpstan/phpstan": "^1.0 || ^2.0",
3434
"phpstan/phpstan-doctrine": "^1.3.12 || ^2.0",
3535
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
3636
"phpstan/phpstan-strict-rules": "^1.0 || ^2.0",
3737
"phpstan/phpstan-symfony": "^1.0 || ^2.0",
38-
"phpunit/phpunit": "^9.5.13",
39-
"psalm/plugin-phpunit": "^0.18 || ^0.19",
40-
"psalm/plugin-symfony": "^5.0",
38+
"phpunit/phpunit": "^11.5.38 || ^12.3.10",
4139
"rector/rector": "^1.1 || ^2.0",
42-
"symfony/browser-kit": "^6.4 || ^7.1",
43-
"symfony/cache": "^6.4 || ^7.1",
44-
"symfony/filesystem": "^6.4 || ^7.1",
45-
"symfony/framework-bundle": "^6.4 || ^7.1",
46-
"symfony/http-foundation": "^6.4 || ^7.1",
47-
"symfony/phpunit-bridge": "^6.4 || ^7.1",
48-
"symfony/security-bundle": "^6.4 || ^7.1",
49-
"symfony/twig-bundle": "^6.4 || ^7.1",
50-
"symfony/var-dumper": "^6.4 || ^7.1",
51-
"vimeo/psalm": "^5.7 || ^6.10"
40+
"symfony/browser-kit": "^6.4 || ^7.3 || ^8.0",
41+
"symfony/cache": "^6.4 || ^7.3 || ^8.0",
42+
"symfony/filesystem": "^6.4 || ^7.3 || ^8.0",
43+
"symfony/framework-bundle": "^6.4 || ^7.3 || ^8.0",
44+
"symfony/http-foundation": "^6.4 || ^7.3 || ^8.0",
45+
"symfony/security-bundle": "^6.4 || ^7.3 || ^8.0",
46+
"symfony/twig-bundle": "^6.4 || ^7.3 || ^8.0",
47+
"symfony/var-dumper": "^6.4 || ^7.3 || ^8.0"
5248
},
5349
"conflict": {
5450
"doctrine/doctrine-bundle": "<2.7",
5551
"gedmo/doctrine-extensions": "<3.7",
56-
"symfony/framework-bundle": "<5.4",
5752
"symfony/string": "5.4.0-BETA1 || 5.4.0-RC1"
5853
},
5954
"minimum-stability": "dev",

phpunit.xml.dist

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,28 @@ DO NOT EDIT THIS FILE!
66
It's auto-generated by sonata-project/dev-kit package.
77
-->
88

9-
<phpunit backupGlobals="false"
10-
backupStaticAttributes="false"
9+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1110
colors="true"
1211
failOnWarning="true"
1312
failOnRisky="true"
14-
stopOnFailure="false"
13+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
14+
displayDetailsOnAllIssues="true"
1515
bootstrap="tests/bootstrap.php"
1616
>
1717
<testsuites>
1818
<testsuite name="SonataEntityAuditBundle Test Suite">
19-
<directory suffix="Test.php">./tests/</directory>
19+
<directory>./tests/</directory>
2020
</testsuite>
2121
</testsuites>
2222

23-
<coverage>
23+
<source ignoreSuppressionOfDeprecations="true">
2424
<include>
25-
<directory suffix=".php">./src/</directory>
25+
<directory>src</directory>
2626
</include>
27-
</coverage>
28-
29-
<listeners>
30-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
31-
</listeners>
27+
</source>
3228

3329
<php>
3430
<ini name="precision" value="8" />
35-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
3631
<env name="KERNEL_CLASS" value="\Sonata\EntityAuditBundle\Tests\App\AppKernel" />
3732
<server name="APP_ENV" value="test" force="true" />
3833
<server name="APP_DEBUG" value="false" />

0 commit comments

Comments
 (0)