We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0698ed4 commit 7232944Copy full SHA for 7232944
src/PhpGenerator/Traits/TraitsAware.php
@@ -56,6 +56,7 @@ public function addTrait(string $name): TraitUse
56
}
57
$this->traits[$name] = $trait = new TraitUse($name);
58
if (func_num_args() > 1 && is_array(func_get_arg(1))) { // back compatibility
59
+ trigger_error('Passing second argument to ' . __METHOD__ . '() is deprecated, use addResolution() instead.');
60
array_map(fn($item) => $trait->addResolution($item), func_get_arg(1));
61
62
0 commit comments