Skip to content

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
@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.

2 participants