Extend package and use generated $expectedArgumentSets

Author: akalongmanCreated Feb 9, 2025Updated Feb 4, 2026
Labelsquestionstale

Question:

I have my custom site_route helper and I want PHPStorm suggestions, like it does with route method. I've created custom meta file:

php
namespace PHPSTORM_META {

    expectedArguments(\site_route(), 0, argumentsSet('routes'));
}

but looks like routes argumentSet from the package's .phpstorm.meta.php file is not available here. Can I somehow realize this, without writing custom argumentSet generation?

Source: barryvdh/laravel-ide-helper