Specify a memory limit during analysis

phpstan

  • A PHP static analysis tool to discover bugs in code.
    More information: <https://github.com/phpstan/phpstan>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

phpstan analyse {{path/to/directory}} --memory-limit {{memory_limit}}

click the source code to copy