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

Revert "Downgrade code to be PHP 7.0 compliant." #108

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Feb 16, 2024

This reverts commit edb2b85.

This partially reverts some code that was done long ago to keep compatibility with PHP 7.0.

As far as moodle-cs now only supports PHP 7.4 and up, we can move back to use return types.

Fixes #107

@stronk7 stronk7 marked this pull request as ready for review February 16, 2024 15:07
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (73f0a60) 96.73% compared to head (68ca06c) 96.73%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #108   +/-   ##
=========================================
  Coverage     96.73%   96.73%           
  Complexity      586      586           
=========================================
  Files            26       26           
  Lines          1625     1625           
=========================================
  Hits           1572     1572           
  Misses           53       53           

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

@stronk7 stronk7 added the enhancement New feature or request label Feb 16, 2024
This reverts commit edb2b85.

This partially reverts some code that was done long ago to
keep compatibility with PHP 7.0.

As far as moodle-cs now only supports PHP 7.4 and up, we
can move back to use return types.

Fixes moodlehq#107
@stronk7 stronk7 force-pushed the revert_old_7_0_support_commit branch from 0d48d28 to 68ca06c Compare February 18, 2024 12:37
@stronk7 stronk7 merged commit 8fff499 into moodlehq:main Feb 18, 2024
8 checks passed
@stronk7 stronk7 deleted the revert_old_7_0_support_commit branch February 18, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revert #162 once PHP min supported version is raised to PHP 7.2
2 participants