Skip to content

Change context parameter to nullable type#36

Merged
XedinUnknown merged 1 commit into
Dhii:0.3.xfrom
zainaftab44:nullable-deprecation
Jul 7, 2026
Merged

Change context parameter to nullable type#36
XedinUnknown merged 1 commit into
Dhii:0.3.xfrom
zainaftab44:nullable-deprecation

Conversation

@zainaftab44

Copy link
Copy Markdown
Contributor

PHP 8.4 deprecated implicitly-nullable parameters (passing null as a default for a non-nullable type). _translate() declares string $context but defaults it to null — triggers E_DEPRECATED on PHP 8.4+ which surfaces as a test failure/warning in consuming projects.

/app/vendor/dhii/containers/src/Util/StringTranslatingTrait.php:49
Dhii\Container\Util\StringTranslatingTrait::_translate(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead

Updated the context parameter to be nullable.

Update the context parameter to allow null values.
@XedinUnknown
XedinUnknown merged commit 0e1ab12 into Dhii:0.3.x Jul 7, 2026
5 checks passed
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