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 63e4977 commit b4518a7Copy full SHA for b4518a7
src/ViewModel.php
@@ -63,7 +63,7 @@ protected function items(): Collection
63
return $this->shouldIgnore($method->getName());
64
})
65
->mapWithKeys(function (ReflectionMethod $method) {
66
- return [$method->getName() => $this->createVariable($method)];
+ return [$method->getName() => $this->createVariableFromMethod($method)];
67
});
68
69
return $publicProperties->merge($publicMethods);
@@ -87,7 +87,7 @@ protected function ignoredMethods(): array
87
], $this->ignore);
88
}
89
90
- protected function createVariable(ReflectionMethod $method)
+ protected function createVariableFromMethod(ReflectionMethod $method)
91
{
92
if ($method->getNumberOfParameters() === 0) {
93
return $this->{$method->getName()}();
0 commit comments