mb_strtolower passing null to parameter ($string) of type string
Running the PHPUnit Functional test with php8.1
Either we can use null coalescing operator to avoid these kind of deprecations or we can use strictly typed parameters
Drupal version: 9.4.x || 9.5.x
PhpUnit: 9.5.21
PHP: 8.1
The test cases aren't failing we have encountered only with the deprecations warnings of NULL parameter
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2022-08-04 at 10.17.22 AM.png | 832.24 KB | ankitv18 |
Issue fork drupal-3301692
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 #3
ankitv18 commentedComment #4
ankitv18 commentedComment #6
jungleDuplicate of #3302838: Querying with NULL values results in warning mb_strtolower(): Passing null to parameter is deprecated or in favour of the approach in it?
Comment #7
smustgrave commentedClosing this one as a duplicate of the other since they are tracking down what is calling the mb_strtolower will move over credit.