style: PHP CS Fixer#2725
Merged
DjordyKoert merged 1 commit into5.xfrom Apr 13, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 5.x #2725 +/- ##
=======================================
Coverage 95.68% 95.68%
=======================================
Files 94 94
Lines 3079 3079
=======================================
Hits 2946 2946
Misses 133 133 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Applies PHP-CS-Fixer-driven formatting changes across source and test fixtures to resolve CI style failures.
Changes:
- Removed
declare(strict_types=1);headers from a set of PHP files to match the repository’s prevailing style. - Added explicit
: voidreturn types to fixture/controller methods that do not return values.
Reviewed changes
Copilot reviewed 51 out of 51 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/RouteDescriber/RouteArgumentDescriber/SymfonyMapRequestPayloadDescriberTest.php | Removed strict_types declaration for style consistency. |
| tests/RouteDescriber/RouteArgumentDescriber/fixture/SomeObject.php | Removed strict_types declaration for style consistency. |
| tests/ModelDescriber/Annotations/Fixture/CompoundValidationRule.php | Removed strict_types declaration for style consistency. |
| tests/ModelDescriber/Annotations/Fixture/CompoundStub.php | Removed strict_types declaration for style consistency. |
| tests/Functional/ModelDescriber/NameConverter.php | Removed strict_types declaration for style consistency. |
| tests/Functional/EntityExcluded/Symfony7/SerializedNameEntity.php | Added : void return type to setter method. |
| tests/Functional/Entity/User.php | Added : void return types to multiple setter methods. |
| tests/Functional/Entity/SymfonyMapQueryString.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/RangeInteger.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/QueryModel/SortQueryModel.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/QueryModel/SortEnum.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/QueryModel/PaginationQueryModel.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/QueryModel/FilterQueryModel.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/QueryModel/ArrayQueryModel.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/PrivateProtectedExposure.php | Added : void return type to protected method. |
| tests/Functional/Entity/JMSUser.php | Added : void return types to methods lacking explicit returns. |
| tests/Functional/Entity/JMSIgnoredProperty.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/GenericTypes.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/EntityWithIgnoredProperty.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/Article.php | Added : void return types to setter methods. |
| tests/Functional/Entity/ArrayItems/Dictionary.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Entity/ArrayItems/Bar.php | Added : void return type to method. |
| tests/Functional/Controller/UndocumentedController.php | Added : void return type to controller action. |
| tests/Functional/Controller/SecuredApiController.php | Added : void return types to controller actions. |
| tests/Functional/Controller/PromotedPropertiesController81.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Controller/OperationIdController.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Controller/OpenApiTagController.php | Removed strict_types and added : void return types to actions. |
| tests/Functional/Controller/MapUploadedFileController.php | Added : void return types to controller actions. |
| tests/Functional/Controller/MapRequestPayloadController.php | Added : void return types to controller actions. |
| tests/Functional/Controller/MapQueryStringController.php | Removed strict_types and added : void return types to actions. |
| tests/Functional/Controller/MapQueryParameterController.php | Added : void return types to controller actions. |
| tests/Functional/Controller/InvokableController.php | Added : void return type to __invoke(). |
| tests/Functional/Controller/GenericTypesController.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Controller/Controller2209.php | Removed strict_types declaration for style consistency. |
| tests/Functional/Controller/ClassApiController.php | Added : void return type to controller action. |
| tests/Functional/Controller/ApiController.php | Added : void return types to multiple controller actions. |
| tests/Functional/ConfigurableContainerFactory.php | Removed strict_types declaration for style consistency. |
| src/TypeDescriber/TemplateDescriber.php | Removed strict_types declaration for style consistency. |
| src/TypeDescriber/GenericCollectionDescriber.php | Removed strict_types declaration for style consistency. |
| src/TypeDescriber/GenericClassDescriber.php | Removed strict_types declaration for style consistency. |
| src/RouteDescriber/RouteArgumentDescriber/SymfonyMapUploadedFileDescriber.php | Removed strict_types declaration for style consistency. |
| src/RouteDescriber/RouteArgumentDescriber/SymfonyMapRequestPayloadDescriber.php | Removed strict_types declaration for style consistency. |
| src/RouteDescriber/RouteArgumentDescriber/SymfonyMapQueryStringDescriber.php | Removed strict_types declaration for style consistency. |
| src/RouteDescriber/RouteArgumentDescriber/SymfonyMapQueryParameterDescriber.php | Removed strict_types declaration for style consistency. |
| src/RouteDescriber/RouteArgumentDescriber/RouteArgumentDescriberInterface.php | Removed strict_types declaration for style consistency. |
| src/RouteDescriber/RouteArgumentDescriber.php | Removed strict_types declaration for style consistency. |
| src/PropertyDescriber/PropertyDescriber.php | Removed strict_types declaration for style consistency. |
| src/Processor/NullablePropertyProcessor.php | Removed strict_types declaration for style consistency. |
| src/Processor/MapRequestPayloadProcessor.php | Removed strict_types declaration for style consistency. |
| src/Processor/MapQueryStringProcessor.php | Removed strict_types declaration for style consistency. |
| src/Attribute/Ignore.php | Removed strict_types declaration for style consistency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes failing CI
What type of PR is this? (check all applicable)
Checklist
docs/)