Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-8394

PHP syntax error after directly calling a function of a new created object

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.6.0
    • Fix Version/s: None
    • Component/s: PHP
    • Labels:
      None

      Description

      Aptana does not recognize the relation to a new created object. See the following code:

      [code]
      echo( (new DateTime($anytime))->format($anyformat) );

      //in general:
      ( new object() )->function(); //doesnt work
      [/code]

      Aptana shows multiple syntax errors in those lines but PHP runs the script fine.

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              lucke01 Luca
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code