Hi there, I am currently evaluating devsense in vscode.

For improving Laravel DX I am looking into generating meta helpers .phpstorm.meta.php.

Example:

    registerArgumentsSet('memberShipArguments', 'id'|'event_id'|'user_id'|'role'|'created_at'|'updated_at');
    expectedArguments(\App\Models\Membership::where(), 0, argumentsSet('memberShipArguments'));

However, this does not (always) seem to be picked up by devsense when modifying the file?
I had it work on 1 occasion, but never got it back. It does work in phpstorm itself.

Any way I can clear the full index? I already did clear the composer cache with no results.

Update:

    expectedArguments(Eloquent::where(), 0, argumentsSet('memberShipArguments'));

The above works, but is not what I need/expect. I need it to be scoped to the where method in the Membership model.

haringsrob Hi,

Good point. We are watching the .phpstorm.meta.php file for changes, but as you mentioned, the scoping of the expectedArguments() is not implemented in the same way as it is in PhpStorm.

I'll try to implement the correct behavior within the next pre-release update.

    Write a Reply...