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

Summary: Add HintErrors for :: operator
Product: php Reporter: junichi11
Component: EditorAssignee: Tomas Mysik <tmysik>
Status: RESOLVED FIXED    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: patch
screenshot

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.