<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>297908</bug_id>
          
          <creation_ts>2012-04-11 16:08:09 +0000</creation_ts>
          <short_desc>code completion offers to call methods on (new Foo())</short_desc>
          <delta_ts>2021-03-09 22:48:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>Language Support: PHP</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Schmidt">kde</reporter>
          <assigned_to>kdevelop-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1245009</commentid>
    <comment_count>0</comment_count>
    <who name="Dominik Schmidt">kde</who>
    <bug_when>2012-04-11 16:08:09 +0000</bug_when>
    <thetext>User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Build Identifier: 

Hey

when i type new Foo() kdevelop offers me code completion and lets me select bar() as method.
No matter if I do that or type it manually afterwards it marks it as wrong syntax under the &quot;-&gt;&quot;.




Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1245020</commentid>
    <comment_count>1</comment_count>
    <who name="Dominik Schmidt">kde</who>
    <bug_when>2012-04-11 16:23:32 +0000</bug_when>
    <thetext>Okay, the syntax check is indeed right, PHP doesn&apos;t suppor this (WTH?!).

So instead the code completion shouldn&apos;t offer to call methods on the object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429360</commentid>
    <comment_count>2</comment_count>
    <who name="Heinz Wiesinger">pprkut</who>
    <bug_when>2014-02-07 17:17:26 +0000</bug_when>
    <thetext>Git commit 9141e9d737cc2635e7573a8b71423de9d52c3389 by Heinz Wiesinger.
Committed on 21/01/2014 at 17:43.
Pushed by wiesinger into branch &apos;master&apos;.

Support the syntax for class member access on instantiation.

This adds support for syntax like (new Foo())-&gt;bar() as introduced
in PHP 5.4.

The bug, that ($a)-&gt; still offers completion even though it is
invalid syntax (stupid PHP) remains though.
Related: bug 305779
REVIEW: 115304

M  +15   -13   duchain/builders/declarationbuilder.cpp
M  +2    -1    duchain/expressionvisitor.cpp
M  +19   -0    duchain/tests/expressionparser.cpp
M  +1    -0    duchain/tests/expressionparser.h
M  +14   -3    parser/php.g

http://commits.kde.org/kdev-php/9141e9d737cc2635e7573a8b71423de9d52c3389</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013041</commentid>
    <comment_count>3</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2021-03-09 22:48:48 +0000</bug_when>
    <thetext>Thank you for the bug report.

As this report hasn&apos;t seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>