Registry / build-tool / adamwojs-php-cs-fixer-phpdoc-force-fqcn

adamwojs-php-cs-fixer-phpdoc-force-fqcn

JSON →
library2.0phppackagistunverified

A PHP-CS-Fixer rule to force fully qualified class names in PHPDoc annotations.

composer require adamwojs/php-cs-fixer-phpdoc-force-fqcn
INSTALL
IMPORT
SIG · ADAMWOJS-PHP-CS-FI
A
adamwojs-php-cs-fixer-phpdoc-force-fqcn
build-toolphpv2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PhpdocForceFqcnFixer
use AdamWojs\PhpCsFixerPhpdocForceFqcn\PhpdocForceFqcnFixer;

Register and enable the custom fixer in PHP-CS-Fixer configuration.

// In your .php_cs config file use AdamWojs\PhpCsFixerPhpdocForceFqcn\PhpdocForceFqcnFixer; $finder = PhpCsFixer\Finder::create()->in(__DIR__); return PhpCsFixer\Config::create() ->registerCustomFixers([new PhpdocForceFqcnFixer()]) ->setRules(['AdamWojs/phpdoc_force_fqcn' => true]) ->setFinder($finder);
Debug
Known issues
breakingThis package is a custom fixer for PHP-CS-Fixer v2; it may not work with v3.
fix
Check compatibility with your PHP-CS-Fixer version.
affects: >=2.0
Upgrade
Version history
2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources
adamwojs-php-cs-fixer-phpdoc-force-fqcn — pip install adamwojs-php-cs-fixer-phpdoc-force-fqcn · libregistry