Skip to content

v0.4.0 - removing useless docblocks

Compare
Choose a tag to compare
@krzysztofrewak krzysztofrewak released this 09 May 07:30
· 57 commits to main since this release
d8e4a5b

After this change, all useless comments will be removed:

Before:

<?php

declare(strict_types=1);

/**
 * Class Whatever
 */
class Whatever
{
    public int|string $something;

    /**
     * @throws JsonException
     */
    public function do(): void
    {
        $i = 1 + 1;
        json_encode([$i], JSON_THROW_ON_ERROR | JSON_UNESCAPED_SLASHES);
    }
}

After:

<?php

declare(strict_types=1);

class Whatever
{
    public int|string $something;

    /**
     * @throws JsonException
     */
    public function do(): void
    {
        $i = 1 + 1;
        json_encode([$i], JSON_THROW_ON_ERROR | JSON_UNESCAPED_SLASHES);
    }
}