nazonohito51/typed-properties-cconverter

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

convert @ver in phpdoc to PHP7.4 typed properties

0.0.1 2020-03-08 16:45 UTC

This package is auto-updated.

Last update: 2021-07-08 19:57:27 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/