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

Increase a bit the memory limit allowed to PHPStan #16346

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

cedric-anne
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -

Recently, on main branch, PHPStan checks on PHP 8.1 are sometimes crashing because the memory limit is reached.

+ vendor/bin/phpstan analyze --ansi --memory-limit=2G --no-interaction --no-progress
Run code static analysis
Note: Using configuration file /var/glpi/phpstan.neon.
 -- -------------------------------------------------------------------------- 
     Error                                                                     
 -- -------------------------------------------------------------------------- 
     Child process error: PHPStan process crashed because it                   
     reached configured PHP memory limit: 2G                                   
     Increase your memory limit in php.ini or run PHPStan with --memory-limit  
     CLI option.                                                               
                                                                               
 -- -------------------------------------------------------------------------- 

@cedric-anne cedric-anne self-assigned this Jan 11, 2024
@trasher trasher merged commit cde4d9d into glpi-project:main Jan 11, 2024
8 checks passed
@cedric-anne cedric-anne deleted the 10.1/phpstan-memory-limit branch January 11, 2024 10:47
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.

3 participants