pbyrne84 / DynamicReturnTypePlugin

135 stars 7 forks source link

Plugin is not working for parameter other than the first #69

Open marcospassos opened 7 years ago

marcospassos commented 7 years ago

The plugin is not working position other than 0.

It does work:

$object->foo(Bar::class);
{
  "methodCalls": [
    {
      "class": "Foobar",
      "method": "foo",
      "position": 0
    }
  ]
}

It does not work:

$object->foo('foobar', Bar::class);
{
  "methodCalls": [
    {
      "class": "Foobar",
      "method": "foo",
      "position": 1
    }
  ]
}

Version:

PhpStorm 2017.1.3
Build #PS-171.4424.11, built on April 26, 2017
JRE: 1.8.0_112-release-736-b21 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.4