public function afterTraverse(array $nodes) { if (!$this->hasStrictType) { $this->addError('No "declare(strict_types = 1)" found in file!'); } }