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

Feature/drop support for php 7.3 #2636

Merged

Conversation

Chris53897
Copy link
Contributor

@Chris53897 Chris53897 commented Jun 20, 2023

#2635

  • drop support for php < 7.3
  • add property types for final classes
  • Remove 2 function related to PHPunit < 9.1
  • use null coalescing operator 2x

Needs a check for BC breaks.

Copy link
Collaborator

@phansys phansys left a comment

Choose a reason for hiding this comment

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

This change should be supported by Rector:

LevelSetList::UP_TO_PHP_72,

@Chris53897 Chris53897 force-pushed the feature/drop-support-for-php-7.3 branch from 070f350 to 5b2fc87 Compare August 20, 2023 09:36
@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (1a3a3ae) 79.67% compared to head (c0289f9) 79.65%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2636      +/-   ##
==========================================
- Coverage   79.67%   79.65%   -0.03%     
==========================================
  Files         162      162              
  Lines        8452     8424      -28     
==========================================
- Hits         6734     6710      -24     
+ Misses       1718     1714       -4     
Files Coverage Δ
...oggable/Document/Repository/LogEntryRepository.php 94.44% <ø> (ø)
.../Loggable/Entity/Repository/LogEntryRepository.php 96.96% <ø> (ø)
src/Mapping/Annotation/Blameable.php 100.00% <ø> (ø)
src/Mapping/Annotation/Slug.php 42.85% <ø> (ø)
src/Mapping/Annotation/SlugHandler.php 33.33% <ø> (ø)
src/Mapping/Annotation/SlugHandlerOption.php 33.33% <ø> (ø)
src/Mapping/Annotation/SoftDeleteable.php 35.71% <ø> (ø)
src/Mapping/Annotation/Timestampable.php 35.71% <ø> (ø)
src/Mapping/Annotation/TranslationEntity.php 30.00% <ø> (ø)
src/Mapping/Annotation/Tree.php 37.50% <ø> (ø)
... and 35 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Chris53897
Copy link
Contributor Author

Using rector as you suggested will introduce a lot of BC Breaks.

@TomasVotruba Is there a safe way to autoupdate with rector for libraries without BC Breaks?

I would suggest to wait until the problems with doctrine/orm 2.16 are fixed.
After that, merge this PR as it is, and improve after that in follow up PRs.

@franmomu franmomu force-pushed the feature/drop-support-for-php-7.3 branch 5 times, most recently from 36982bd to b8daa69 Compare September 7, 2023 08:21
@franmomu franmomu force-pushed the feature/drop-support-for-php-7.3 branch 2 times, most recently from 25f252a to b56c185 Compare September 19, 2023 06:22
@franmomu franmomu force-pushed the feature/drop-support-for-php-7.3 branch from b56c185 to 23ed9ff Compare October 24, 2023 13:51
@franmomu franmomu requested a review from phansys October 27, 2023 06:12
Copy link
Collaborator

@phansys phansys left a comment

Choose a reason for hiding this comment

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

Maybe we could also implement the rule set @PHP74Migration from PHP-CS-Fixer.

@franmomu franmomu merged commit 2d327ad into doctrine-extensions:main Oct 29, 2023
17 of 19 checks passed
@franmomu
Copy link
Collaborator

Thanks @Chris53897!

@Chris53897 Chris53897 deleted the feature/drop-support-for-php-7.3 branch February 19, 2024 19:43
paxal pushed a commit to sportmium/DoctrineExtensions that referenced this pull request Mar 18, 2024
* feat: drop support of php <= 7.3

* feat: drop support of php <= 7.3

* Update code to PHP 7.4

* Use @PHP74Migration from PHP-CS-Fixer

---------

Co-authored-by: Christopher Georg <[email protected]>
Co-authored-by: Fran Moreno <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants