mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-24 17:36:02 +02:00
fix tests
This commit is contained in:
parent
16252b4da1
commit
80cc9920b4
@ -36,6 +36,9 @@ final class MethodReflector
|
||||
return $classReflection->getImmediateMethods()[$method] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo possibly cache, quite slow
|
||||
*/
|
||||
public function getMethodReturnTypes(string $class, string $methodCallName): array
|
||||
{
|
||||
$methodReflection = $this->reflectClassMethod($class, $methodCallName);
|
||||
|
@ -40,7 +40,7 @@ final class FormSetRequiredRector extends AbstractRector
|
||||
{
|
||||
if (! $this->methodCallAnalyzer->isTypesAndMethods(
|
||||
$node,
|
||||
[self::FORM_CLASS, 'Nette\Forms\Container'],
|
||||
['Nette\Forms\Controls\TextInput'],
|
||||
['addCondition']
|
||||
)
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user