# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> Rector 7dedffe81273dbf59d38b72e2c7ecdc355fd8430 <!-- Please describe your problem here. --> Notice on PHP74, Fatal on PHP80 ## Minimal PHP Code Causing Issue https://getrector.org/demo/1ec25e18-db6b-61f6-99e2-dd3368cadfb1 ``` <?php declare(strict_types=1); class Factory { /** * @param string|int|float|bool $value */ public function create(string $name, $value): int { } } ``` ``` $services->set(\Rector\CodeQuality\Rector\ClassMethod\NarrowUnionTypeDocRector::class); ``` ## Expected Behaviour No Notice/Fatal :)