Dreamweaver seems to report valid PHP code as a syntax error
In Dreamweaver, I have the following function:
This function, and the whole file that contains it, runs without error on my server, so I believe it is valid PHP code.
However, Dreamweaver is displaying errors, claiming there is a syntax problem.
I believe the syntax I'm using is valid since PHP version 7 or 8. Dreamweaver seems to only reference PHP 5.6 or 7.1. I have selected for Dreamweaver to reference PHP 7.1, but this has not made a difference.
Why is Dreamweaver marking my code as incorrect? Is the PHP in some way non-standard, even though it works? Or is this a limitation of Dreamweaver?
