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

chore: use php-cs-fixer 3.51 #271

Merged
merged 2 commits into from Mar 4, 2024
Merged

Conversation

phil-davis
Copy link
Contributor

php-cs-fixer 3.49 (or some recent minor release) wants to use the ? (nullable) syntax on optional parameters.
That syntax has been supported for quite a while since PHP https://www.php.net/manual/en/migration71.new-features.php

In the cases here, as well as the default value of the parameter being null, the ? explicitly allows the caller to pass the value null if they want.

This seems reasonable, I don't see how it can break any existing usage.

@phil-davis phil-davis self-assigned this Feb 11, 2024
Copy link

codecov bot commented Feb 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.69%. Comparing base (11997fd) to head (c01b1e2).
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #271      +/-   ##
============================================
- Coverage     96.75%   96.69%   -0.07%     
  Complexity      115      115              
============================================
  Files            13       13              
  Lines           493      484       -9     
============================================
- Hits            477      468       -9     
  Misses           16       16              

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

@phil-davis
Copy link
Contributor Author

Has a minor complaint about project code coverage - strange report, the codecov/patch reports 100% of diff hit.

@phil-davis
Copy link
Contributor Author

Bumped to use cs-fixer 3.51

@phil-davis phil-davis merged commit 43cea9f into sabre-io:master Mar 4, 2024
6 checks passed
@phil-davis phil-davis deleted the cs-fixer-3.49 branch March 4, 2024 05:33
@phil-davis phil-davis changed the title chore: use php-cs-fixer 3.49 chore: use php-cs-fixer 3.51 Mar 4, 2024
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.

None yet

1 participant