Problem/Motivation
The module has PHP 8.4 deprecation in the form of "Implicitly nullable via default value null" - https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
This produces deprecation warnings from PHP.
Steps to reproduce
Install Drupal 11+ and the 4.0.3 version of the cshs module running on PHP 8.4 and observe the deprecation warnings.
Proposed resolution
See attached patch.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| ot-php8.4-fix-implicit-nullable-deprecation.patch | 1.31 KB | flemming.fridthjof |
Issue fork cshs-3533904
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
flemming.fridthjof commentedComment #3
dhruv.mittal commentedComment #4
liam morlandComment #6
dhruv.mittal commentedComment #7
drcolossos commentedThe patch applies and fixes the deprecation errors
Comment #8
joseph.olstadComment #10
joseph.olstadHmm, for some reason didn't merge.
Comment #11
joseph.olstadhttps://git.drupalcode.org/project/cshs/-/jobs/6820792
I don't have time to fix this atm, will come back to this later.
Comment #12
joseph.olstadunlikely that this is related to the merge request, more likely it is related to D11.2 since the last time this passed D11.1 was the standard for phpunit.
Comment #13
danrodHello there, what's the status of this? any timeline of merging this to the 4.0.x branch soon? I am using D11.2 and I can see the same issues:
Comment #14
liam morlandThe test failures are not caused by this issue. They would be fixed by #3547080: Fix CshsGroupByRootFormatterUnitTest.
Comment #15
joseph.olstadComment #17
joseph.olstadComment #19
joseph.olstadhttps://www.drupal.org/project/cshs/releases/4.0.4