Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Coder version 7.x (and I suspect version 8.x) does not support the coalesce (??) operator introduced in php7.
Would it be problematic for support to be introduced?
$name = $firstName ?? $username ?? $placeholder ?? “Guest”;
Read more:
http://php.net/manual/en/migration70.new-features.php#migration70.new-fe...
Notes:
Support is only lacking because it treats ?? as a single ? and expects a space to be on either side and in the event of coalesce operator is used that rule explicitly becomes invalid.
Comments
Comment #2
fubarhouse CreditAttribution: fubarhouse commentedComment #3
fubarhouse CreditAttribution: fubarhouse commentedComment #4
fubarhouse CreditAttribution: fubarhouse commentedComment #5
klausiThe operator is supported in Coder 8.x-3.x, please try that version.