Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for PHP 7.3 #585

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Drop support for PHP 7.3 #585

merged 2 commits into from
Sep 16, 2021

Conversation

core23
Copy link
Member

@core23 core23 commented Sep 16, 2021

Subject

Drop support for PHP 7.3, because active support will end in a few days. This allows us to add type hints everywhere.

I am targeting this branch, because this is a major change.

Changelog

### Changed
- Added type hints to every property and method.

### Removed
- Dropped support for PHP 7.3

* @var array
*/
private $blockServices = [];
private array $blockServices = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can still add phpdoc array<...>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will check this when increasing phpstan / psalm level

@VincentLanglet VincentLanglet requested a review from a team September 16, 2021 08:07
@core23 core23 merged commit 727861a into sonata-project:3.x Sep 16, 2021
@core23 core23 deleted the drop-php73 branch September 16, 2021 13:55
@jordisala1991
Copy link
Member

Do you think it is a good idea for next majors to have different php required versions?

@VincentLanglet
Copy link
Member

Do you think it is a good idea for next majors to have different php required versions?

I don't see any issue with this. You can still bump Php and then the major version.
Anyway, the major will be release potentially after the php version drop.

@core23 core23 added the major label Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants