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

Require PHP 7.4, Fix CS and QA #48

Merged
merged 7 commits into from
May 24, 2024
Merged

Require PHP 7.4, Fix CS and QA #48

merged 7 commits into from
May 24, 2024

Conversation

gmazzap
Copy link
Contributor

@gmazzap gmazzap commented May 23, 2024

  • PHPCS was not checked due to wrong configuration. Fix config (to latest Inpsyde CS) and the fix code
  • Use typed properties when possible
  • Use doc bloc consistently, delete unnecessary comments
  • Update dependencies and GHA workflow (no need to support PHPUnit 8)
  • Added Package::STATUS_BOOTING constant to alias Package::STATUS_MODULES_ADDED for clarity

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bug fix (for PHPCS config) + maintenance update

What is the current behavior? (You can also link to an open issue here)

PHPCS did not check anything.

What is the new behavior (if this is a feature change)?

No change in behavior. PHPCS now works (besides being updated).

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

- PHPCS was not checked due to wrong configuration. Fix config (to latest Inpsyde CS) and the fix code
- Use typed properties when possible
- Use doc bloc consistently, delete unnecessary comments
- Update dependencies and GHA workflow (no need to support PHPUnit 8)
- Added Package::STATUS_BOOTING constant to alias Package::STATUS_MODULES_ADDED for clarity
Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.93%. Comparing base (c6855a6) to head (b7a7fe4).

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #48      +/-   ##
============================================
- Coverage     98.97%   98.93%   -0.04%     
- Complexity      217      234      +17     
============================================
  Files            10       10              
  Lines           588      566      -22     
============================================
- Hits            582      560      -22     
  Misses            6        6              
Flag Coverage Δ
unittests 98.93% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@gmazzap gmazzap marked this pull request as ready for review May 23, 2024 20:20
@gmazzap gmazzap requested review from Chrico and tfrommen May 23, 2024 20:20
Copy link
Member

@Chrico Chrico left a comment

Choose a reason for hiding this comment

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

Nice refactor to upgrade the library to min PHP 7.4. 💪🏻 I left a few comments and I would like to wait for the #47 before merging these updates.

@gmazzap
Copy link
Contributor Author

gmazzap commented May 24, 2024

I would like to wait for the #47 before merging these updates.

@Chrico ok. I thought about doing it the other way around. But it is also fine get the generic hook out first. I'll comment there to agree on the hook name so we can move that forward.

Copy link
Member

@tfrommen tfrommen left a comment

Choose a reason for hiding this comment

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

This is looking good, thanks for this!

I just added a small change to the test for the LibraryProperties to account for an invalid (i.e., anything other than an array) author value. The code has just been added, but was not covered in any test.

image

tests/unit/Container/ContainerConfiguratorTest.php Outdated Show resolved Hide resolved
@gmazzap
Copy link
Contributor Author

gmazzap commented May 24, 2024

Thanks for the review and the added test @tfrommen

@gmazzap gmazzap merged commit 8d5c26b into master May 24, 2024
64 checks passed
@gmazzap gmazzap deleted the chore/update-php-fix-cs branch May 24, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants