Larastan: Merge of phpstan.neon file?

Created on 24 Jul 2018  Â·  5Comments  Â·  Source: nunomaduro/larastan

Hi, is possible can merge file phpstan.neon with my own?

question

Most helpful comment

You should have your own phpstan.neon and include this repository’s
extension.neon in it. Then you can run PHPStan as usual.

On Tue, 24 Jul 2018 at 10:05, Petr Král notifications@github.com wrote:

Hi, is possible can merge file phpstan.neon with my own?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nunomaduro/larastan/issues/93, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGZuIg_MRf-JqBMm3Ny_9LYbDfSqBK0ks5uJtU_gaJpZM4VcRM9
.

>

Ondřej Mirtes

All 5 comments

You should have your own phpstan.neon and include this repository’s
extension.neon in it. Then you can run PHPStan as usual.

On Tue, 24 Jul 2018 at 10:05, Petr Král notifications@github.com wrote:

Hi, is possible can merge file phpstan.neon with my own?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nunomaduro/larastan/issues/93, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGZuIg_MRf-JqBMm3Ny_9LYbDfSqBK0ks5uJtU_gaJpZM4VcRM9
.

>

Ondřej Mirtes

In fact when you use ./artisan code:analyse --configuration=/path/to/your/file.neon it is _merged_ with yours.

🤔

I only know what I did:

  • provided my own .neon file
  • when I ran it, I was suspicious I didn't see "ignore errors reported"
  • edited the built-in from the package to show ignored errors
  • and it worked

That was my conclusion a merge happened. Also, all those errors reported looked different to me than from vanilla phpstan.

But maybe I miss-looked.

This issue seems no longer be relevant.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdrieghe picture jdrieghe  Â·  4Comments

bogdankharchenko picture bogdankharchenko  Â·  4Comments

AJenbo picture AJenbo  Â·  4Comments

hailwood picture hailwood  Â·  4Comments

JeroenVanOort picture JeroenVanOort  Â·  3Comments