Skip to content

Commit 0195b6c

Browse files
committed
chore: Simplify logic of StepViewModelBehaviour
1 parent 9e09ea2 commit 0195b6c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Component/AbstractComponentContext.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ public function __construct(
1313
) {
1414
}
1515

16-
public function hasMethod(string $methodName)
17-
{
18-
if (str_starts_with($methodName, 'get')) {
19-
$objectName = lcfirst(substr($methodName, 3));
20-
if (array_key_exists($objectName, $this->dependencies)) {
21-
return true;
22-
}
23-
}
24-
25-
return false;
26-
}
27-
2816
public function __call(string $methodName, array $arguments)
2917
{
3018
$objectName = lcfirst(substr($methodName, 3));

0 commit comments

Comments
 (0)