1
0
mirror of https://github.com/rectorphp/rector.git synced 2025-05-13 11:27:08 +02:00

fix tests

This commit is contained in:
TomasVotruba 2017-11-02 17:52:02 +01:00
parent 16252b4da1
commit 80cc9920b4
2 changed files with 4 additions and 1 deletions
packages/BetterReflection/src/Reflector
src/Rector/Contrib/Nette/Forms

@ -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']
)
) {