psu-libraries / psulib_base

Drupal Base Theme
0 stars 0 forks source link

Minor linter issue #177

Open zipymonkey opened 1 month ago

zipymonkey commented 1 month ago

Really minor bug.

--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Render\Element.
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
zipymonkey commented 1 month ago

The sort order seems correct as it is but the following throws an error.

use Drupal\block\Entity\Block;
use Drupal\Core\Render\Element;
use Drupal\Core\Template\Attribute;

Changing the order as follows "fixes" the error.

use Drupal\Core\Render\Element;
use Drupal\Core\Template\Attribute;
use Drupal\block\Entity\Block;

The last drupal/coder release does make some changes to spellchecker so maybe that is related? Going to punt this issue for now.