Improvements
Reusing existing argument sets
If you want to reuse existing argument sets from other tasks, you can now use the ArgumentsSet
value object referencing them within your task:
use IdeHelper\Generator\Directive\ExpectedArguments;
use IdeHelper\ValueObject\ArgumentsSet;
$method = '\\' . static::CLASS_FORMAT_HELPER . '::sidebarLink()';
$list = [
ArgumentsSet::create(FormatIconFontAwesome5Task::SET_ICONS_FONTAWESOME),
];
$directive = new ExpectedArguments($method, 1, $list);
Just make sure those argument sets are actually available, as this is not checked for you.