Open mlocati opened 1 year ago
Let's assume we are in this situation:
If we choose one of the suggested classes, PDT inserts the use statement before declare(strict_types=1);:
use
declare(strict_types=1);
So, when PHP parses this file, it displays this error:
Fatal error: strict_types declaration must be the very first statement in the script
PDT should add use statements after the declare statement.
declare
Let's assume we are in this situation:
If we choose one of the suggested classes, PDT inserts the
use
statement beforedeclare(strict_types=1);
:So, when PHP parses this file, it displays this error:
PDT should add
use
statements after thedeclare
statement.