|
78 | 78 | :group 'phpstan) |
79 | 79 |
|
80 | 80 | (defcustom phpstan-enable-on-no-config-file t |
81 | | - "If T, activate configuration from composer even when `phpstan.neon' is not found." |
| 81 | + "If T, activate config from composer even when `phpstan.neon' is not found." |
82 | 82 | :type 'boolean |
83 | 83 | :group 'phpstan) |
84 | 84 |
|
85 | 85 | (defcustom phpstan-memory-limit nil |
86 | 86 | "Set --memory-limit option." |
87 | | - :type '(choice (string :tag "Specifies the memory limit in the same format php.ini accepts.") |
| 87 | + :type '(choice (string :tag "A memory limit number in php.ini format.") |
88 | 88 | (const :tag "Not set --memory-limit option" nil)) |
| 89 | + :link '(url-link :tag "PHP Manual" |
| 90 | + "https://www.php.net/manual/ini.core.php#ini.memory-limit") |
89 | 91 | :safe (lambda (v) (or (null v) (stringp v))) |
90 | 92 | :group 'phpstan) |
91 | 93 |
|
|
94 | 96 | :type '(choice |
95 | 97 | (string :tag "URL or image name of Docker Hub.") |
96 | 98 | (const :tag "Official Docker container" "ghcr.io/phpstan/phpstan") |
97 | | - (const :tag "No specify Docker image")) |
| 99 | + (const :tag "No specify Docker image" nil)) |
98 | 100 | :link '(url-link :tag "PHPStan Documentation" "https://phpstan.org/user-guide/docker") |
99 | 101 | :link '(url-link :tag "GitHub Container Registry" |
100 | 102 | "https://github.com/orgs/phpstan/packages/container/package/phpstan") |
|
103 | 105 |
|
104 | 106 | (defcustom phpstan-use-xdebug-option nil |
105 | 107 | "Set --xdebug option." |
106 | | - :type '(choice (const :tag "Set --xdebug option dynamically" 'auto) |
| 108 | + :type '(choice (const :tag "Set --xdebug option dynamically" auto) |
107 | 109 | (const :tag "Add --xdebug option" t) |
108 | 110 | (const :tag "No --xdebug option" nil)) |
| 111 | + :safe #'symbolp |
109 | 112 | :group 'phpstan) |
110 | 113 |
|
111 | 114 | (defcustom phpstan-generate-baseline-options '("--generate-baseline" "--allow-empty-baseline") |
@@ -180,7 +183,8 @@ STRING |
180 | 183 | Relative path to `phpstan' configuration file from project root directory. |
181 | 184 |
|
182 | 185 | NIL |
183 | | - If `phpstan-enable-on-no-config-file', search \"vendor/autoload.php\" in (phpstan-get-working-dir).") |
| 186 | + If `phpstan-enable-on-no-config-file', search \"vendor/autoload.php\" |
| 187 | + in (phpstan-get-working-dir).") |
184 | 188 | (put 'phpstan-autoload-file 'safe-local-variable |
185 | 189 | #'(lambda (v) (if (consp v) |
186 | 190 | (and (eq 'root (car v)) (stringp (cdr v))) |
|
0 commit comments