nazonohito51 / typed-properties-cconverter
convert @ver in phpdoc to PHP7.4 typed properties
0.0.1
2020-03-08 16:45 UTC
Requires
- php: >=7.2
- nikic/php-parser: ^4.3
- phpdocumentor/reflection-docblock: ^5.1
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-09 03:03:49 UTC
README
before
<?php declare(strict_types=1); namespace TypedPropertiesConverter\Tests\Fixtures; use TypedPropertiesConverter\Tests\Fixtures\Elements\SomeProperty; class SomeClass { /** * @var SomeProperty */ private $property1; /** * @var SomeProperty|null */ private $property2; /** * @var \Fully\Qualified\Class\Name */ private $property3; /** * @var Relative\Class\Name */ private $property4; }
after
<?php declare(strict_types=1); namespace Some\Name\Space; use Some\Name\Space\SomeProperty; class SomeClass { private SomeProperty $property1; private ?SomeProperty $property1; private \Fully\Qualified\Class\Name $property3; private Relative\Class\Name $property4; }
Usage
vendor/bin path/to/convert/dir/