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 55268cd commit bb1caedCopy full SHA for bb1caed
src/Alias.php
@@ -403,9 +403,15 @@ protected function detectMethods()
403
$macros = isset($properties['macros']) ? $properties['macros'] : [];
404
foreach ($macros as $macro_name => $macro_func) {
405
if (!in_array($macro_name, $this->usedMethods)) {
406
+ try {
407
+ $method = $this->getMacroFunction($macro_func);
408
+ } catch (Throwable $e) {
409
+ // Invalid method, skip
410
+ continue;
411
+ }
412
// Add macros
413
$this->methods[] = new Macro(
- $this->getMacroFunction($macro_func),
414
+ $method,
415
$this->alias,
416
$reflection,
417
$macro_name,
0 commit comments