Skip to content

Add check phpstan if phpstan is running on preload.php #7040

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

Merged
merged 1 commit into from
Jul 23, 2025
Merged

Conversation

samsonasik
Copy link
Member

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba
Copy link
Member

My bad, I thought I've approved.
Let's give it a go 👍

@TomasVotruba TomasVotruba merged commit 691e7ba into main Jul 23, 2025
46 checks passed
@TomasVotruba TomasVotruba deleted the preload branch July 23, 2025 11:09
if (defined('__PHPSTAN_RUNNING__')) {
return;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it makes sense here though, as it's our internal script.

Copy link
Member Author

@samsonasik samsonasik Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is template file content, without this, next generate preload.php and preload-split-package.php will remove __PHPSTAN_RUNNING__ check, that cause conflict node class.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it

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.

2 participants