Skip to main content
Participant
April 8, 2020
Question

php type hinting creates invalid error in Dreaweaver CC 2020

  • April 8, 2020
  • 1 reply
  • 268 views

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.

    This topic has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    April 8, 2020

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

     

    Nancy O'Shea— Product User & Community Expert
    Participant
    April 11, 2020

    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. 

    Nancy OShea
    Community Expert
    Community Expert
    April 11, 2020

    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-syntax-error-not-an-error

     

    Nancy O'Shea— Product User & Community Expert