This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257094 - A redeclared trait method is not marked as a hint error
Summary: A redeclared trait method is not marked as a hint error
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 10:28 UTC by junichi11
Modified: 2015-12-12 02:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (2.40 KB, patch)
2015-12-11 04:18 UTC, junichi11
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2015-12-10 10:28:05 UTC
In case of class, it is marked as an error.

<?php
trait MyTrait
{
    public function publicMethod() // no error
    {
        
    }

    public function publicMethod() // no error
    {
        
    }
}

class MyClass
{

    public function publicMethod() // marked as an error
    {
        
    }

    public function publicMethod()
    {
        
    }

}

my environment:
Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b17
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b17
System: Linux version 3.13.0-71-generic running on amd64; UTF-8

Thanks.
Comment 1 junichi11 2015-12-11 04:18:11 UTC
Created attachment 157753 [details]
patch
Comment 2 junichi11 2015-12-11 04:20:09 UTC
I've created a patch. Could you please review it? Thanks.
Comment 3 Tomas Mysik 2015-12-11 09:35:23 UTC
Taking over.
Comment 4 Tomas Mysik 2015-12-11 10:26:59 UTC
Patch applied, thanks a lot, Junichi!

http://hg.netbeans.org/web-main/rev/27bed5e7377e
Comment 5 Quality Engineering 2015-12-12 02:44:04 UTC
Integrated into 'main-silver', will be available in build *201512120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/27bed5e7377e
User: Tomas Mysik <tmysik@netbeans.org>
Log: #257094 - A redeclared trait method is not marked as a hint error

Patch contributed by junichi11@netbeans.org.