Problem/Motivation

When running phpstan from the command line interface, php runs into errors

Steps to reproduce

  1. Clone the domain repository in Drupal 11.x in modules/contrib/domain
  2. Run ./vendor/bin/phpstan analyse modules/contrib/domain/ -c modules/contrib/domain/phpstan.neon from the Drupal directory

Output:
File '/[...]/modules/contrib/domain/phpstan-baseline.neon' is missing or is not readable.

Proposed resolution

Fix phpstan errors when running phpstan from the command line interface

Remaining tasks

  1. Write a merge request
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

AI-Generated: Yes (Claude Code was used to help draft this issue summary and to write the code and tests on the merge request. I reviewed and ran the work myself before posting it.)

Issue fork domain-3615912

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

idebr created an issue. See original summary.

mably made their first commit to this issue’s fork.

mably’s picture

Status: Active » Needs review
mably’s picture

Issue summary: View changes
idebr’s picture

Status: Needs review » Reviewed & tested by the community

  • mably committed c8aad956 on 4.x
    task: #3615912 Fix phpstan errors when running phpstan from the command...
mably’s picture

Status: Reviewed & tested by the community » Fixed

Thanks @idebr for the review! Merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.