I've changed the version of php from 5.6 to the new version: 7.0. So far, everything works fine; but some new features of php 7 are not recognized by the debugger. For example the line:
$flag = $params['flag'] ?? true;
is marked by the debugger - symbol ? not recognized, but when I run the program it is working correctly!
What can I do to fix this?
Version of PDT released with Eclipse Mars supports all major PHP 7 features. Your example is about Null Coalesce Operator (https://bugs.eclipse.org/bugs/show_bug.cgi?id=466966) and it is ready to use with PDT.
To remove error in PHP editor go to your project preferences (context menu in PHP Explorer) and choose PHP -> Interpreter and change it to PHP 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With