instapro / coding-standard

The Instapro Coding Standard is a set of PHP CS Fixer that we use in the Instapro projects.
MIT License
2 stars 2 forks source link

Disable the nullable type rule #4

Closed thijsBreker closed 1 year ago

thijsBreker commented 1 year ago

With this rule enabled, this:

    public function example(
       ?string $string = null,
    ) {}

Turns into this:

    public function example(
       string $string = null,
    ) {}

Which is not something we want.

MarijnKoesen commented 1 year ago

It would be nice to have a test for this.

MarijnKoesen commented 1 year ago

LGTM