Skip to content

1.13.0

Choose a tag to compare

@dereuromark dereuromark released this 15 Jul 08:59
· 446 commits to master since this release

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.