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

Use PHP 8.1 never return type #1184

Merged
merged 1 commit into from
Dec 9, 2021
Merged

Conversation

hemberger
Copy link
Member

This replaces the @return never docstring used by some CI tools.

Related to #1183.

This replaces the `@return never` docstring used by some CI tools.

Related to smrealms#1183.
@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #1184 (92ef8cb) into main (e958ad5) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1184   +/-   ##
=========================================
  Coverage     14.47%   14.47%           
  Complexity     3927     3927           
=========================================
  Files            85       85           
  Lines         11630    11630           
=========================================
  Hits           1683     1683           
  Misses         9947     9947           
Impacted Files Coverage Δ
src/lib/Default/Page.class.php 70.83% <0.00%> (ø)
src/lib/Default/smr.inc.php 1.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e958ad5...92ef8cb. Read the comment docs.

@hemberger
Copy link
Member Author

Note that Scrutinizer does not yet know about the never return type, because it does not (yet?) support PHP 8.1.

@hemberger hemberger merged commit f386316 into smrealms:main Dec 9, 2021
@hemberger hemberger deleted the return-never branch December 9, 2021 14:17
hemberger added a commit that referenced this pull request May 3, 2022
We have been using PHP 8.1 since #1176 (and implicitly requiring it
since #1184), but I forgot to bump the Composer requirement.

I discovered this coincidentally when Dependabot was failing to update
`overtrue/phplint` beyond v4.1.0. While investigating, I remembered
seeing that their v5.0.0 release had a PHP 8.1 requirement, which made
Dependabot think it was incompatible with our project due to the
(incorrect) 8.0+ requirement.
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.

1 participant