isName($node, 'is_a')) { return null; } if (isset($node->args[2])) { return null; } $firstArgumentStaticType = $this->getStaticType($node->args[0]->value); if (! $firstArgumentStaticType instanceof StringType) { return null; } $node->args[2] = new Arg($this->nodeFactory->createTrue()); return $node; } }