driade / phpfmt8

PHP formatter for Sublime Text 4, with PHP 8 support.
BSD 3-Clause "New" or "Revised" License
45 stars 2 forks source link

2 spaces are formatted after the callable type declaration #30

Closed glauca closed 1 year ago

glauca commented 1 year ago

before format

<?php

class Server
{
    protected array $handlers = [];

    public function withHandler(callable | string $handler): static
    {
        $this->handlers[] = $this->createHandlerItem($handler);

        return $this;
    }
}

after format

<?php

class Server
{
    protected array $handlers = [];

    public function withHandler(callable  | string $handler): static
    {
        $this->handlers[] = $this->createHandlerItem($handler);

        return $this;
    }
}

2 spaces are formatted after the callable type declaration

driade commented 1 year ago

Thanks a lot @glauca, it's fixed