When I run phpunit-Tests, I get following depracted-message:
Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in .../entityreference_prepopulate.module on line 336
PHP Version 7.1.33
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3115641-unparenthesized-ternary-deprecated.patch | 744 bytes | gunwald |
Comments
Comment #2
gunwald commentedI wrote a simple patch for this.
Comment #3
lunk rat commentedPatch in #2 applies cleanly and resolved the issue. Marking RTBC now after using in production. Thank you @gunwald!
Comment #4
joelpittetRTBC++ moving back to normal
Comment #5
solideogloria commentedRTBC++
Comment #6
maxmendez commentedWorks as a charm, thanks.
Comment #7
joseph.olstad+1
Comment #8
alex_optimWork for me too.
Comment #10
amitaibuSo long since I've applied a patch, I forgot how to do it :) Found the answer in https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...
Merged, thanks.
Comment #12
jan-e commentedI ran into this issue while testing one of my projects with PHP 7.4. It was hard to find the cause of the warning, as I first landed at https://www.drupal.org/project/drupal/issues/3171883#comment-14199635
Could the fix be included in a new release?
Comment #13
anybodySame here! A new stable release would be helpful :)