Skip to content

Conversation

@hemberger
Copy link

Implicitly nullable parameters (i.e. those accepting null without a null typehint) are deprecated in PHP 8.4. Marking $library as explicitly nullable fixes the following deprecation warning:

Deprecated: Nbbc\BBCode::__construct(): Implicitly marking parameter
$library as nullable is deprecated, the explicit nullable type must be
used instead

Explicitly nullable types were not added until PHP 7.1, so the minimum requirement is raised from 5.6 (which reached EOL in 2017) to 7.1 (which was released in 2016). Documentation has been updated accordingly.

Added PHP 8.3 and 8.4 to the GitHub Actions test matrix.

Implicitly nullable parameters (i.e. those accepting null without a null
typehint) are deprecated in PHP 8.4. Marking `$library` as explicitly
nullable fixes the following deprecation warning:

> Deprecated: Nbbc\BBCode::__construct(): Implicitly marking parameter
> $library as nullable is deprecated, the explicit nullable type must be
> used instead

Explicitly nullable types were not added until PHP 7.1, so the minimum
requirement is raised from 5.6 (which reached EOL in 2017) to 7.1 (which
was released in 2016). Documentation has been updated accordingly.

Added PHP 8.3 and 8.4 to the GitHub Actions test matrix.
hemberger added a commit to hemberger/smr that referenced this pull request May 11, 2025
The vanilla/nbbc code has a deprecation warning that will be fixed with
the following PR:

vanilla/nbbc#39

While we wait for that to be merged, install from the PR branch to avoid
the deprecation warning.

Added a test of the `bbify` function, since there was previously no test
code exercising nbbc. Also pass the `smrBBCode` function as a first-
class callable when creating BBCode rules.
hemberger added a commit to smrealms/smr that referenced this pull request May 11, 2025
The vanilla/nbbc code has a deprecation warning that will be fixed with
the following PR:

vanilla/nbbc#39

While we wait for that to be merged, install from the PR branch to avoid
the deprecation warning.

Added a test of the `bbify` function, since there was previously no test
code exercising nbbc. Also pass the `smrBBCode` function as a first-
class callable when creating BBCode rules.
@hemberger
Copy link
Author

@acharron-hl Hi! You've helped me merge my PRs in the past, and I was wondering if you might be able to take a quick look at this. Thanks!

@acharron-hl
Copy link

Sorry for the delay, glad you mentioned me. We would have run into this relatively soon ourselves in any case, but thanks for the PR. I'll merge it and tag a new release.

@acharron-hl acharron-hl merged commit e18cf9c into vanilla:master Sep 16, 2025
6 checks passed
@hemberger hemberger deleted the php-8.4-deprecation branch September 16, 2025 16:13
@hemberger
Copy link
Author

Sorry for the delay, glad you mentioned me. We would have run into this relatively soon ourselves in any case, but thanks for the PR. I'll merge it and tag a new release.

Thanks so much!

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