Skip to content

Implicitly nullable parameters are deprecated.#4

Merged
HLeithner merged 1 commit intojoomla-backports:joomla-backportsfrom
brianteeman:relationships
Aug 17, 2025
Merged

Implicitly nullable parameters are deprecated.#4
HLeithner merged 1 commit intojoomla-backports:joomla-backportsfrom
brianteeman:relationships

Conversation

@brianteeman
Copy link
Copy Markdown

simple change to explicitly mark the $data param as nullable

Created as I spotted the following log entry after running cypress tests on joomla 5.3

PHP Deprecated: Tobscure\JsonApi\Relationship::__construct(): Implicitly marking parameter $data as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\Relationship.php on line 31

once merged joomla-cms will need to be updated to use this version

simple change to explicitly mark the $data param as nullable

Created as I spotted the following log entry after running cypress tests on joomla 5.3

>  PHP Deprecated:  Tobscure\JsonApi\Relationship::__construct(): Implicitly marking parameter $data as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\Relationship.php on line 31
@HLeithner HLeithner merged commit 6ce7310 into joomla-backports:joomla-backports Aug 17, 2025
6 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