Skip to content

Commit 3dd034b

Browse files
committed
add document about phpstan-memory-limit option
1 parent 8bde6ea commit 3dd034b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.org

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Put the following into ~.dir-locals.el~ files on the root directory of project.
4242
(phpstan-executable . docker)
4343
(phpstan-working-dir . (root . "path/to/dir"))
4444
(phpstan-config-file . (root . "path/to/dir/phpstan-docker.neon"))
45+
(phpstan-memory-limit . "1G")
4546
(phpstan-level . 7))))
4647
#+END_SRC
4748

@@ -123,3 +124,8 @@ Rule level of PHPStan analysis. Please see [[https://github.com/phpstan/phpstan
123124

124125
*** Custom variable ~phpstan-flycheck-auto-set-executable~
125126
Set flycheck phpstan-executable automatically when non-NIL.
127+
*** Custom variable ~phpstan-memory-limit~
128+
Use phpstan memory limit option when non-NIL.
129+
- STRING :: Specifies the memory limit in the same format php.ini accepts.
130+
- ex) ~"1G"~
131+
- ~nil~ :: Use memory limit in php.ini

0 commit comments

Comments
 (0)