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.
Summary: | PHP method return value type-hinting doesn't work when the return type is a class from another namespace | ||
---|---|---|---|
Product: | php | Reporter: | BlameFate |
Component: | Code | Assignee: | Tomas Mysik <tmysik> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
BlameFate
2016-03-03 11:49:36 UTC
Of course, I really meant to write: $testInstance->testMethod()-> testClass::testStaticMethod()-> - There is no autocompletion when you type these! Should be fixed now, please verify. http://hg.netbeans.org/web-main/rev/8f8b50dac241 BTW please note that PHP7 is not (yet) officially supported by NetBeans so if you want to test its current (far from perfect) state, start NetBeans from command line with this property [1]. Thanks. [1] -J-Dnb.php7=true Thank you for your prompt attention! I've been using the nightly builds for their partial support of PHP7, which is much better than PHP7 support in the "latest stable" build of NetBeans. I tried the latest nightly build: 201603040002 - this does NOT appear to resolve the issue! (I tried amending the Windows shortcut: "C:\Program Files\NetBeans Dev 201603040002\bin\netbeans.exe" -J-Dnb.php7=true I also tried from the command line as you suggested: I get the same results, it's still broken. Should I wait until tomorrow for the next "Nightly Build", before trying again? Or next week? Just wait for a message that will automatically appear here as a comment saying in which daily build the fix will be available. Do not forget to use nb.php7 property as described in my previous comment. Thanks. Integrated into 'main-silver', will be available in build *201603050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8f8b50dac241 User: Tomas Mysik <tmysik@netbeans.org> Log: #258226 - PHP method return value type-hinting doesn't work when the return type is a class from another namespace Just tested Nightly Build 201603070002, with the nb7 property you described! This is working nicely. Thank you for your advice, and for your prompt work in resolving this issue/ implementing this feature! Windows 10 users: Visit this "folder" (directory): C:\ProgramData\Microsoft\Windows\Start Menu\Programs\NetBeans Then find a "shortcut" that looks like this: NetBeans IDE Build 201603070002 Right click (context menu), open "Properties", change "Target" to something like this: "C:\Program Files\NetBeans Dev 201603070002\bin\netbeans.exe" -J-Dnb.php7=true Thanks for verification and your positive feedback! :) |