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 257560 - Add HintErrors for :: operator
Summary: Add HintErrors for :: operator
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: 2016-01-14 11:06 UTC by junichi11
Modified: 2016-01-19 02:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (1.68 KB, patch)
2016-01-14 11:33 UTC, junichi11
Details | Diff
screenshot (14.78 KB, image/png)
2016-01-14 11:45 UTC, junichi11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2016-01-14 11:06:33 UTC
:: operator cannot be used with an object in PHP5.2 or older. So if PHP5.2/5.1 is set to project properties as a PHP Version, it should be marked as an error.

This is related to issue 240527.

Thanks.
Comment 1 junichi11 2016-01-14 11:33:46 UTC
Created attachment 158124 [details]
patch
Comment 2 junichi11 2016-01-14 11:45:21 UTC
Created attachment 158125 [details]
screenshot

PHP5.2/5.1 and PHP5.3
Comment 3 junichi11 2016-01-14 11:49:44 UTC
Tomas, could you please review it? Sorry, I was not sure how to test them...

Thanks.
Comment 4 Tomas Mysik 2016-01-14 11:58:03 UTC
These hints for checking PHP version do not need any tests IMO so it is OK. I will apply the patch on Monday I hope (currently working on something else, sorry).

Thanks a lot, as always great job!
Comment 5 Tomas Mysik 2016-01-18 06:49:40 UTC
Patch applied, thank you, Junichi!

http://hg.netbeans.org/web-main/rev/256bcdcd6708
Comment 6 junichi11 2016-01-18 09:51:48 UTC
Thanks a lot for reviewing it!
Comment 7 Quality Engineering 2016-01-19 02:26:59 UTC
Integrated into 'main-silver', will be available in build *201601190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/256bcdcd6708
User: Tomas Mysik <tmysik@netbeans.org>
Log: #257560 - Add HintErrors for :: operator

Patch contributed by junichi11@netbeans.org.