When using Use ::class instead auto-fix, the generated _use_ statement is appended right after <?php block which works fine. But when declare(strict_types=1); is already defined the _use_ statement is added before the _declare_ statement which makes the file invalid, in my case using Laravel.
As directives are handled as the file is being compiled, only literals may be given as directive values. Variables and constants cannot be used.
https://secure.php.net/manual/en/control-structures.declare.php

Fixed!
Most helpful comment
Fixed!