format/imports/fully-qualified-strict-types
In the format-laravel preset. Safe fix.
What it does
Removes the leading part of fully qualified symbol references if a given symbol is imported or belongs to the current namespace.
Configuration
[format.rules]
"imports/fully-qualified-strict-types" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
import-symbols |
bool |
Any | false |
import_symbols |
leading-backslash-in-global-namespace |
bool |
Any | false |
leading_backslash_in_global_namespace |
phpdoc-tags |
list |
Any | ["param", "phpstan-param", "phpstan-property", "phpstan-property-read", "phpstan-property-write", "phpstan-return", "phpstan-var", "property", "property-read", "property-write", "psalm-param", "psalm-property", "psalm-property-read", "psalm-property-write", "psalm-return", "psalm-var", "return", "see", "throws", "var"] |
phpdoc_tags |
Replaces
fully_qualified_strict_types(php-cs-fixer)