Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: phpstan baseline placeholder #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

claudiu-cristea
Copy link
Contributor

@claudiu-cristea claudiu-cristea commented Jan 8, 2025

The Issue

The GitLab Templates commit a107b7f1f7 introduced this error when running PHPStan:

$ ddev phpstan
Note: Using configuration file /var/www/html/phpstan.neon.
File '/var/www/html/BASELINE_PLACEHOLDER' is missing or is not readable.

How This PR Solves The Issue

The phpstan command now replaces BASELINE_PLACEHOLDER with phpstan-baseline.neon.

Manual Testing Instructions

  • With the main branch, run ddev phpstan. You should see the error. Looking into phpstan.neon you will see the string BASELINE_PLACEHOLDER
  • Use the PR branch and re-run. No error. The BASELINE_PLACEHOLDER string is replaced with phpstan-baseline.neon inside phpstan.neon

Automated Testing Overview

No automated tests.

Related Issue Link(s)

Release/Deployment Notes

N/A

@claudiu-cristea claudiu-cristea changed the title Replace PHPStan baseline placeholder fix: phpstan baseline placeholder Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant