You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (JIRA)" <ji...@apache.org> on 2019/08/17 01:14:00 UTC

[jira] [Commented] (NETBEANS-501) Support (clone $object)->method() in PHP

    [ https://issues.apache.org/jira/browse/NETBEANS-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909528#comment-16909528 ] 

Junichi Yamamoto commented on NETBEANS-501:
-------------------------------------------

Thank you for reporting it.

Please write example code to reproduce it since next time :) Like the following: 
{code}
<?php

class Example
{
    public function __construct() {
    }

    public function testMethod() {
        echo 'test' . PHP_EOL;
    }
}

$example = new Example();
(new Example())->testMethod(); // OK
$example->testMethod(); // OK
(clone $example)->testMethod(); // CC doesn't work
{code}

> Support (clone $object)->method() in PHP
> ----------------------------------------
>
>                 Key: NETBEANS-501
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-501
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor
>            Reporter: Varun Agrawal
>            Assignee: Junichi Yamamoto
>            Priority: Minor
>
> PHP supports this. While NetBeans support (new $object)->method(), it doesn't support clone keyword here.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists