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

Comments

Zeg created an issue. See original summary.

gunwald’s picture

I wrote a simple patch for this.

lunk rat’s picture

Status: Active » Reviewed & tested by the community

Patch in #2 applies cleanly and resolved the issue. Marking RTBC now after using in production. Thank you @gunwald!

joelpittet’s picture

Version: 7.x-1.7 » 7.x-1.x-dev
Priority: Minor » Normal
Issue tags: +PHP 7.4

RTBC++ moving back to normal

solideogloria’s picture

RTBC++

maxmendez’s picture

Works as a charm, thanks.

joseph.olstad’s picture

+1

alex_optim’s picture

Work for me too.

  • amitaibu committed 5d65d84 on 7.x-1.x authored by gunwald
    Issue #3115641 by gunwald: Deprecated: Unparenthesized `a ? b : c ? d :...
amitaibu’s picture

Status: Reviewed & tested by the community » Fixed

So 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jan-e’s picture

I 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?

anybody’s picture

Same here! A new stable release would be helpful :)