We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cbf8e85 + 279fad3 commit f72b34bCopy full SHA for f72b34b
src/Concerns/HasAttributes.php
@@ -347,12 +347,12 @@ private function parseCastParamaters($paramaters)
347
$method = substr($value, 1, -2);
348
$value = is_callable([$this, $method]) ? $this->{$method}() : null;
349
350
- // Local attribute. ($some_attribute)
+ // Local attribute. ($some_attribute)
351
} elseif (substr($value, 0, 1) === '$') {
352
$key = substr($value, 1);
353
$value = $this->{$key};
354
355
- // Callable function (eg helper). (some_function())
+ // Callable function (eg helper). (some_function())
356
} elseif (stripos($value, '()') !== false) {
357
$method = substr($value, 0, -2);
358
$value = is_callable($method) ? $method() : null;
0 commit comments