My server is running PHP 7.2.26. I'm coding in Dreamweaver CC (Ver 19.2.1). I'm using null-coalescing operator on a page, but Dreamweaver is giving me "Syntax Error, Unexpected '?'" as a line error.
($_SESSION['form_data']['smtpEmailAddress'] ?? "")
It works fine when viewing in a browser. I only get the error in Dreamweaver. Is there a way to get Dreamweaver to accept Null-coalescing Operator? Dreamweaver is currently set to use PHP 7.1. 7.2 is not an option within preferences.
I know I could just ignore the Dreamweaver error, but I do scan my code for errors using the Dreamweaver error indicators. I'd rather fix Dreamweaver than just ignore the error.