Problem/Motivation

Got this when trying to analyze a custom module.

PHPStan command failed:

[redacted phpstan command]

Command output:
Empty.

Command error:
Configuration parameters excludes_analyse and excludePaths cannot be used at the same time. Parameter excludes_analyse has been deprecated so use excludePaths only from now on.

Steps to reproduce

Trying to run the deprecation checks with phpstan >= 0.12.65 results in the error above.

Proposed resolution

Change excludes_analyse to excludePaths.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

TwoD created an issue. See original summary.

twod’s picture

Status: Active » Needs review
behindthepage’s picture

I came to the same conclusion troubleshooting this problem so I can confirm this patch fixes the problem.

behindthepage’s picture

Status: Needs review » Reviewed & tested by the community
gábor hojtsy’s picture

  • 36dde50 committed on 8.x-3.x
    Issue #3224167 by TwoD, behindthepage, Gábor Hojtsy: Parameter...
gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

behindthepage’s picture

Thank you, Gábor!

mpp’s picture

This requires a new release.

gábor hojtsy’s picture

gábor hojtsy’s picture

behindthepage’s picture

Thanks Gábor

mpp’s picture

That’s great, thank you very much!

seismicmike’s picture

I ran into this error yesterday and upgrading to 3.8 fixed it. But now this morning, the error is back.

seismicmike’s picture

Update: I got it working by removing the module and phpstan with composer, clearing caches and then re-installing. Must have been something weird on my machine. Sorry for the false alarm.

seismicmike’s picture

Accidental double post removed. Sorry. My Internet is acting up

drupalbabaji’s picture

#16 worked for me

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.