Bug 441147 - Method chaining autocomplete bug for PHPDoc methods
Summary: Method chaining autocomplete bug for PHPDoc methods
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-05 05:13 EDT by Michal Niewrzal CLA
Modified: 2020-05-14 11:52 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot with code assist (67.06 KB, image/jpeg)
2014-08-05 05:13 EDT, Michal Niewrzal CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Niewrzal CLA 2014-08-05 05:13:03 EDT
Created attachment 245715 [details]
Screenshot with code assist

When using parameter arguments in a PHPDoc method (@method) ZS correctly detects the method and it's arguments but only when method chaining is not being used. PHPDoc methods are chained correctly with autocomplete when the arguments are not specified in the PHPDoc for the class.

<?php

/**
* @method Foo method1()
* @method Foo method2($foo)
*/
class Foo {}

$foo = new Foo();

// CASE ONE: Place Cursor at {CURSOR}
$foo->method1()->{CURSOR}/* Ctrl + Space yields autocomplete*/

// Case TWO: Place Cursor at {CURSOR}
$foo->method2()->{CURSOR}/* Ctrl + Space yields nothing*/
?>
Comment 1 Michal Niewrzal CLA 2014-08-05 06:18:45 EDT
Patch: https://git.eclipse.org/r/#/c/31021/
Comment 3 Kalin CLA 2014-08-25 09:19:54 EDT
Verified.
Closing....