Skip to content

php 8.4 Implicitly nullable parameter declarations deprecated#3

Merged
SniperSister merged 1 commit intojoomla-backports:joomla-backportsfrom
brianteeman:nullable
Mar 21, 2025
Merged

php 8.4 Implicitly nullable parameter declarations deprecated#3
SniperSister merged 1 commit intojoomla-backports:joomla-backportsfrom
brianteeman:nullable

Conversation

@brianteeman
Copy link

tested by running the joomla integration tests with php 8.4

npx cypress run --spec '.\tests\System\integration\api\com_config\'

This pr fixes the deprecation notice

[19-Mar-2025 21:55:34 UTC] PHP Deprecated:  Tobscure\JsonApi\AbstractSerializer::getAttributes(): Implicitly marking parameter $fields as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\AbstractSerializer.php on line 44
[19-Mar-2025 21:55:34 UTC] PHP Deprecated:  Tobscure\JsonApi\SerializerInterface::getAttributes(): Implicitly marking parameter $fields as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\SerializerInterface.php on line 42

tested by running the joomla integration tests with php 8.4

`npx cypress run --spec '.\tests\System\integration\api\com_config\'`

This pr fixes the deprecation notice

[19-Mar-2025 21:55:34 UTC] PHP Deprecated:  Tobscure\JsonApi\AbstractSerializer::getAttributes(): Implicitly marking parameter $fields as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\AbstractSerializer.php on line 44
[19-Mar-2025 21:55:34 UTC] PHP Deprecated:  Tobscure\JsonApi\SerializerInterface::getAttributes(): Implicitly marking parameter $fields as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\SerializerInterface.php on line 42
[19-Mar-2025 21:55:35 UTC] PHP Deprecated:  Tobscure\JsonApi\AbstractSerializer::getAttributes(): Implicitly marking parameter $fields as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\AbstractSerializer.php on line 44
[19-Mar-2025 21:55:35 UTC] PHP Deprecated:  Tobscure\JsonApi\SerializerInterface::getAttributes(): Implicitly marking parameter $fields as nullable is deprecated, the explicit nullable type must be used instead in D:\repos\j51\libraries\vendor\tobscure\json-api\src\SerializerInterface.php on line 42
@SniperSister SniperSister merged commit 89f1ef6 into joomla-backports:joomla-backports Mar 21, 2025
@SniperSister
Copy link

Thank you @brianteeman !

@laoneo
Copy link

laoneo commented Mar 21, 2025

@brianteeman can you make an update pr in the CMS repo?

brianteeman added a commit to brianteeman/joomla-cms that referenced this pull request Mar 21, 2025
joomla-backports/json-api-php#3

Fixes deprecation notices

Signed-off-by: BrianTeeman <brian@teeman.net>
@brianteeman brianteeman deleted the nullable branch March 21, 2025 10:18
@brianteeman
Copy link
Author

joomla/joomla-cms#45180

laoneo pushed a commit to joomla/joomla-cms that referenced this pull request Mar 22, 2025
joomla-backports/json-api-php#3

Fixes deprecation notices

Signed-off-by: BrianTeeman <brian@teeman.net>
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.

3 participants