Fix PHP 8.4 deprecation

Created on 17 March 2025, about 2 months ago

Problem/Motivation

There is an issue with PHP 8.4, related to the implicitly nullable parameter being deprecated now, requiring an explicit marking declaration.

Checking the code using PHPCompatibility code sniffer:

FILE: /var/www/html/web/modules/contrib/focal_point/tests/src/Unit/FocalPointUnitTestCase.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 70 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter:
    |         | $original_image.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 182ms; Memory: 10MB

exit status 1

Steps to reproduce

Test the code base with PHPCompatibility code sniffer.

Proposed resolution

Fix deprecation.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

๐Ÿ“Œ Task
Status

Active

Version

2.0

Component

Other Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada maursilveira Windsor, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024