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

fubarhouse created an issue. See original summary.

fubarhouse’s picture

Issue summary: View changes
fubarhouse’s picture

Issue summary: View changes
fubarhouse’s picture

Issue summary: View changes
klausi’s picture

Version: 7.x-1.x-dev » 8.x-3.x-dev
Category: Task » Support request
Status: Active » Fixed

The operator is supported in Coder 8.x-3.x, please try that version.

Status: Fixed » Closed (fixed)

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