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

explicitly mark nullable parameters as nullable #261

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Mar 27, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
Documentation
License MIT

What's in this PR?

mark nullable parameters (i.e. parameters for which a default null value is set) as nullable (by prefixing its type with a question mark)

Why?

implicitly marking a parameter as nullable will be deprecated in PHP 8.4 (see e.g. https://github.com/symfony/symfony/actions/runs/8459191951/job/23175036483?pr=54426#step:8:2951)

Example Usage

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

To Do

@dbu
Copy link
Contributor

dbu commented Mar 28, 2024

ah, the php 8.4 BC break. thanks for the adjustments.

@dbu dbu merged commit 6b5f57f into php-http:1.x Mar 28, 2024
27 of 29 checks passed
@dbu
Copy link
Contributor

dbu commented Mar 28, 2024

ah, correction. not BC break, it is only a deprecation ✔️

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

2 participants