Problem/Motivation
When running unit tests in PHP 8 the following error is thrown:
TypeError : uasort(): Argument #1 ($array) must be of type array, null given
Seems to be due to #3115987: Rename the $instanceIDs property used from plugin classes to $instanceIds.
Steps to reproduce
Run unit tests on PHP 8
Proposed resolution
Update reference to variable
Remaining tasks
- Review patch
- Run weekly PHP 8 tests
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | ctools-3220480-1-instance-ids.patch | 541 bytes | mstrelan |
Comments
Comment #2
mstrelan commentedComment #3
acbramley commentedEasy peasy! Search the codebase and this is the only place that casing is used.
Comment #4
joelpittetThanks for spotting this, I've committed it to dev.
Comment #6
joelpittetComment #8
hockey2112 commentedThis fixed a similar issue with Viewfield: https://www.drupal.org/project/viewfield/issues/3381787#comment-15199519