Fork me on GitHub
a Sensio Labs Product

I ate three cookies 🍪 (v3.40.2) edition

Rule no_leading_import_slash

Remove leading slashes in use clauses.

Examples

Example #1

--- Original
+++ New
 <?php
 namespace Foo;
-use \Bar;
+use Bar;

Rule sets

The rule is part of the following rule sets:

Source class

PhpCsFixer\Fixer\Import\NoLeadingImportSlashFixer