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: memory-limit option for phpstan #4900

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

Conversation

kevinquinnyo
Copy link

@kevinquinnyo kevinquinnyo commented Jan 29, 2025

This might only be a problem for newer phpstan versions (2.1.1 here).

If you try to run phpstan the way ale will when it builds the option, you will get something like:

The "--memory-limit" option requires a value.

It wants you to use --memory-limit=-1 instead.

Updated existing test, but we should probably check to make sure phpstan is backwardsforward compatible with this --key=val option format if this is in fact a change to how that option is parsed, and otherwise make some kind of shim for both version?

This might only be a problem for newer phpstan versions (2.1.1 here).

If you try to run `phpstan` the way ale will when it builds the option, you will get something like:

```
The "--memory-limit" option requires a value.
```

It wants you to use `--memory-limit=-1` instead.
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