Add phpstorm meta hints

This commit is contained in:
Barry vd. Heuvel
2024-12-29 14:19:05 +01:00
parent 2a41415f01
commit 61fd354706
2 changed files with 38 additions and 15 deletions
+8
View File
@@ -65,4 +65,12 @@ namespace PHPSTORM_META {
override(\tap(0), type(0));
override(\optional(0), type(0));
<?php if (isset($expectedArguments)) : ?>
<?php foreach ($expectedArguments as $function => $arguments) : ?>
<?php foreach ($arguments as $index => $argumentList) : ?>
expectedArguments(\<?= $function ?>(), <?= $index ?>,<?php foreach ($argumentList as $i => $arg) : ?><?php if($i % 10 == 0) { echo "\n"; } ?><?= var_export($arg, true); ?>,<?php endforeach; ?>
);
<?php endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
}