This is because in your close, the $table parameter is marked as a Blueprint object. Indeed, every time a Blueprint is passed to the Schema::create closure. Thus, you can restrict the Blueprint parameter, and then PHP throws a fatal error if an object of another type is passed, or you can leave it empty so that PHP does not check the passed object.
Just find files that do not have use -Statement missing. There will be no parameter limitation.
source share