Skip to content

Conversation

@murrant
Copy link
Contributor

@murrant murrant commented Jun 16, 2025

Closes #165

Proposed Changes

Fixes an issue with PHP8.4 where implicit nullable arguments are deprecated. Nullable types require PHP 7.1, so project PHP version minimum remains 7.2.

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • make test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@murrant murrant changed the title Remove all implicit nullable arguments fix: PHP 8.4 deprecation: remove all implicit nullable arguments Jun 16, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 75.09%. Comparing base (cccd095) to head (0300bb6).

Files with missing lines Patch % Lines
src/InfluxDB2/InvokableScriptsApi.php 0.00% 4 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #166   +/-   ##
=========================================
  Coverage     75.09%   75.09%           
- Complexity      437      455   +18     
=========================================
  Files            25       25           
  Lines          1104     1104           
=========================================
  Hits            829      829           
  Misses          275      275           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

@murrant Thanks for the PR! Could you please clarify in the README.md how this will work with older versions of PHP?

@murrant
Copy link
Contributor Author

murrant commented Jun 16, 2025

Nullable types were added in PHP 7.1. The minimum PHP version for this project is PHP 7.2. There is no effect.

Fixes an issue with PHP8.4 where implicit nullable arguments are deprecated. Nullable types require PHP 7.1, so project PHP version minimum remains 7.2.
@murrant murrant force-pushed the fix-implicit-nullable branch from db83495 to 0300bb6 Compare June 16, 2025 16:48
@murrant
Copy link
Contributor Author

murrant commented Jun 16, 2025

Also, FYI, your php-cs-fixer is too old to implement nullable_type_declaration_for_default_null_value.

I suggest updating your tools.

@Jellyfrog
Copy link

ping @bednar

@bednar bednar merged commit 2adf934 into influxdata:master Jun 24, 2025
12 checks passed
@Jellyfrog
Copy link

@bednar could we get a new release for this? 🙏

@murrant murrant deleted the fix-implicit-nullable branch June 25, 2025 22:55
@bednar
Copy link
Contributor

bednar commented Jun 26, 2025

done

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.

4 participants