Skip to content

v1.5.0 - object operator spacing

Choose a tag to compare

@krzysztofrewak krzysztofrewak released this 09 Jun 06:46
· 41 commits to main since this release
bc7c99f

As described in #74 and implemented in #75, from now we are enforcing a proper spacing in object operators. Anonymous functions spacing (#11) was fixed too.

With these changes this:

        $array = $this ->array;
        if ($this ?-> nullable) {
            return array_filter($array, fn (int $i): bool => $i % 2 === 0);
        }

will be fixed into:

        $array = $this->array;
        if ($this?->nullable) {
            return array_filter($array, fn(int $i): bool => $i % 2 === 0);
        }