Commit 2bc3225
authored
[All] Add doctrine persistence 4 (#174)
This pull request updates the codebase to support PHP 8.4 and modernizes
dependencies and configuration files for improved compatibility and
maintainability. The most significant changes include updating CI
workflows and test matrices for PHP 8.4, raising minimum versions for
key dependencies (including PHPUnit, PHPStan, Rector, and Psalm), and
refactoring PHPUnit configuration files to align with PHPUnit 10
standards. Additionally, the Symfony Stimulus bundle is now included,
and several code annotations and overrides have been added for better
clarity and static analysis support.
**Platform and Dependency Upgrades**
* CI workflows (`.github/workflows/ci.yaml`, `monorepo.yaml`, `qa.yaml`,
`split_ci.yaml`) now test against PHP 8.4, updating all relevant
matrices and job definitions.
[[1]](diffhunk://#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133ddL14-R32)
[[2]](diffhunk://#diff-c807f1f07915bfe6b561350c38134836c4aae8288a6ee205aec569d75e7e085cL15-R15)
[[3]](diffhunk://#diff-6cda67a2225baf6fd03fab6c06f989f6ed05461024b036dbf7eea8e11fc95da3L14-R14)
[[4]](diffhunk://#diff-c255c954d67add37f0fe00bf40275e61b446cf28527c99016229c31537aed7a0L17-R17)
[[5]](diffhunk://#diff-c255c954d67add37f0fe00bf40275e61b446cf28527c99016229c31537aed7a0L36-R36)
* Composer dependencies in `composer.json`,
`packages/basic-page-bundle/composer.json`, and
`packages/ckeditor-sonata-media-bundle/composer.json` are updated to
require newer versions, including PHPUnit 10, PHPStan 2.x, Rector 2.x,
Psalm 6.x, and Symfony Stimulus Bundle.
[[1]](diffhunk://#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L17-R19)
[[2]](diffhunk://#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L59-R80)
[[3]](diffhunk://#diff-3241b904b4180f03c366cfa9ea34506d1d809e675c15465c86323cfa708de4d8L25-R25)
[[4]](diffhunk://#diff-3241b904b4180f03c366cfa9ea34506d1d809e675c15465c86323cfa708de4d8L47-R57)
[[5]](diffhunk://#diff-bddaf4a4056c2af8c1430016f875c17ab339991fef9985cda597f9fd88034839L36-R46)
**Testing and Static Analysis Improvements**
* PHPUnit configuration files (`phpunit.xml.dist` in both bundles) are
refactored for PHPUnit 10, including schema updates, cache directory
settings, removal of deprecated listeners, and migration from
`<coverage>` to `<source>`.
[[1]](diffhunk://#diff-d6a8c5108cf1c3f3e2fccbe9a7d2f9985d8f0cd3c4afb1e69b68adc8fe24397fL6-L39)
[[2]](diffhunk://#diff-0477cb7bafd9b0e20e3f472dbd3d278cedf555c866379a9d5225636893d7f802L6-L39)
* Development dependencies in `monorepo-builder.php` are updated to
match the new minimum versions for static analysis and testing tools.
**Symfony and Bundle Enhancements**
* The Symfony Stimulus bundle is now included in both production and
test environments (`composer.json`, `Kernel.php`), supporting modern
frontend integration.
[[1]](diffhunk://#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L59-R80)
[[2]](diffhunk://#diff-3241b904b4180f03c366cfa9ea34506d1d809e675c15465c86323cfa708de4d8L47-R57)
[[3]](diffhunk://#diff-e1942184052ea6a037d0862107c9183b48b78da5743df5cd0b8691a7ce4d3f0aR36)
[[4]](diffhunk://#diff-e1942184052ea6a037d0862107c9183b48b78da5743df5cd0b8691a7ce4d3f0aR58-R78)
**Code Quality and Annotation Updates**
* Added `@api` annotations to key entity classes and `#[\Override]`
attributes to overridden methods for improved static analysis and
documentation.
[[1]](diffhunk://#diff-2aa398dd56e69e0a5d49490b8d9c218ef769c3020dc4d2091b510d047b009bbdR24-R26)
[[2]](diffhunk://#diff-67a04b170ba555970cc7e28952c8f496aa92025aac59e941e65761b2a4de053eR23-R25)
[[3]](diffhunk://#diff-b2d670f86e93dbbc4bd8c0a4794a0e4d81bb3e5b9d0f2b520b9f10172890a159R21)
[[4]](diffhunk://#diff-49277f5d5184d863f419106dd66f845ae60bce9d2a60e5e2e253aa0ccdb99209R34-R50)
[[5]](diffhunk://#diff-d695325593b9abf5de4edf68cfbc86a60f00f93f3f9ad814365e8188f385356dR29)
[[6]](diffhunk://#diff-df733786eb79b5b7b27301cdc1cffc9883880e9c991c9a0ff69ff20eb964be24R37)
* Minor code quality improvements, such as suppressing Psalm warnings
and updating entity methods for better testability.
[[1]](diffhunk://#diff-debc95e230ea9fbca72a94b8363cf0c7e72aa2fecbc9f2209222df894c32c88bR20-R22)
[[2]](diffhunk://#diff-debc95e230ea9fbca72a94b8363cf0c7e72aa2fecbc9f2209222df894c32c88bR31-R37)
[[3]](diffhunk://#diff-bd41bcbda81bc0d4b77992c220c0efe08e0ee30ab44ac37c5c35aa482278ff1eR27)
**Coding Standards**
* Updated `.php-cs-fixer.dist.php` to refine ignored PHPDoc tags and
remove obsolete rules for better code style enforcement.
## Checklist
Ensure your pull request meets the following requirements:
- [x] Tests have been added or updated.
- [x] Documentation has been updated (if applicable).
- [x] I have applied neccessary labels to this PR.
- [x] I have tested this change locally and on staging.
- [x] At a functional level, it has been validated with the team/PO.File tree
172 files changed
+651
-386
lines changed- .github/workflows
- packages
- basic-page-bundle
- src
- Entity
- Twig
- tests
- App
- Entity
- Integration
- ckeditor-sonata-media-bundle
- src/Admin
- tests
- App
- Entity
- Integration
- Unit
- cookies-bundle
- src
- Entity
- Form/Type
- Twig
- tests
- App
- Integration
- Unit
- doctrine-translatable-bundle
- src
- EventSubscriber
- Model
- tests
- App
- Entity
- Translatable
- Translation
- Provider
- Integration
- form-handler-bundle
- src
- ViewModel
- tests
- Integration
- Unit
- redirection-bundle
- src/Entity
- tests
- App
- Entity
- Integration
- Unit
- render-event-bundle
- tests
- Integration
- Unit
- seo-bundle
- src
- AlternateLinks
- Entity
- Factory
- MetaInformation
- Twig
- tests
- App
- AlternateLinks
- Entity
- MetaInformation
- Integration
- Unit
- sortable-behavior-bundle
- src
- Service
- Twig
- tests
- App
- Entity
- Functional
- Integration
- Unit
- testing
- tests
- App
- Entity
- translation-bundle
- src
- Entity
- Factory
- Twig
- tests
- App
- Integration
- user-bundle
- src
- Admin
- Entity
- Form
- Security
- Twig
- tests
- App
- Unit
- tests
- App
- Entity
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
172 files changed
+651
-386
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 18 | | |
25 | | - | |
| 19 | + | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
| 22 | + | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
32 | | - | |
| 26 | + | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
39 | | - | |
40 | 33 | | |
41 | 34 | | |
42 | 35 | | |
0 commit comments