Framework: Imports order

Created on 14 Oct 2019  路  2Comments  路  Source: laravel/framework

  • Laravel Version: 6.2.0
  • PHP Version: 7.3.4
  • Database Driver & Version: N/A

Description:

I might be missing something, but it seems that the stubs for all artisan generated classes now import classes in the string length descending order - is that intentional?

Steps To Reproduce:

php artisan make:migration create_test_table

resulting file:

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTestTable extends Migration
{
   //...
}

Most helpful comment

I see - hmm, doesn't look as neat as it did before.

All 2 comments

It imports them in alphabetical order, one step closer to psr-12, many more to go.

https://github.com/laravel/framework/pull/29933

I see - hmm, doesn't look as neat as it did before.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iivanov2 picture iivanov2  路  3Comments

ghost picture ghost  路  3Comments

klimentLambevski picture klimentLambevski  路  3Comments

felixsanz picture felixsanz  路  3Comments

shopblocks picture shopblocks  路  3Comments