Highlighted

php type hinting creates invalid error in Dreaweaver CC 2020

New Here ,
Apr 08, 2020

Copy link to clipboard

Copied

public function addToValidators(array $data) : void;

^this is valid php, but creates a syntax error in Dreamweaver CC 2020. I am fully updated as of this posting. Using php 7.3 and Dreamweaver is set to 7.1. This is valid php per php 7.1. How do I fix this error? I do not want it showing up. I cannot find it in your source code.

Views

49

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

php type hinting creates invalid error in Dreaweaver CC 2020

New Here ,
Apr 08, 2020

Copy link to clipboard

Copied

public function addToValidators(array $data) : void;

^this is valid php, but creates a syntax error in Dreamweaver CC 2020. I am fully updated as of this posting. Using php 7.3 and Dreamweaver is set to 7.1. This is valid php per php 7.1. How do I fix this error? I do not want it showing up. I cannot find it in your source code.

Views

50

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 08, 2020 0
Adobe Community Professional ,
Apr 08, 2020

Copy link to clipboard

Copied

You can do what I do, ignore it. Or disable Linting in your Preferences.

 

Nancy O'Shea, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 08, 2020 1
New Here ,
Apr 11, 2020

Copy link to clipboard

Copied

Thank you for your reply. I do not want to ignore it. This is a paid service. What does linting have to do with PHP? When I toggle that setting it is only css/html.  Do you know the location of the php errors in the DW CC source code? That would be a solution. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 11, 2020 0
Adobe Community Professional ,
Apr 11, 2020

Copy link to clipboard

Copied

Feel free to submit a Bug/Feature request from your DW Help menu. 

 

I see one was already logged a while back about something similar.

https://dreamweaver.uservoice.com/forums/382851-adobe-dreamweaver-bugs/suggestions/34490197-php-synt...

 

Nancy O'Shea, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 11, 2020 1