Skip to content

Commit afb83ac

Browse files
committed
Update doc comments
1 parent 6dc8f1d commit afb83ac

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

phpstan.el

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,16 @@
7878
:group 'phpstan)
7979

8080
(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."
8282
:type 'boolean
8383
:group 'phpstan)
8484

8585
(defcustom phpstan-memory-limit nil
8686
"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.")
8888
(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")
8991
:safe (lambda (v) (or (null v) (stringp v)))
9092
:group 'phpstan)
9193

@@ -94,7 +96,7 @@
9496
:type '(choice
9597
(string :tag "URL or image name of Docker Hub.")
9698
(const :tag "Official Docker container" "ghcr.io/phpstan/phpstan")
97-
(const :tag "No specify Docker image"))
99+
(const :tag "No specify Docker image" nil))
98100
:link '(url-link :tag "PHPStan Documentation" "https://phpstan.org/user-guide/docker")
99101
:link '(url-link :tag "GitHub Container Registry"
100102
"https://github.com/orgs/phpstan/packages/container/package/phpstan")
@@ -103,9 +105,10 @@
103105

104106
(defcustom phpstan-use-xdebug-option nil
105107
"Set --xdebug option."
106-
:type '(choice (const :tag "Set --xdebug option dynamically" 'auto)
108+
:type '(choice (const :tag "Set --xdebug option dynamically" auto)
107109
(const :tag "Add --xdebug option" t)
108110
(const :tag "No --xdebug option" nil))
111+
:safe #'symbolp
109112
:group 'phpstan)
110113

111114
(defcustom phpstan-generate-baseline-options '("--generate-baseline" "--allow-empty-baseline")
@@ -180,7 +183,8 @@ STRING
180183
Relative path to `phpstan' configuration file from project root directory.
181184
182185
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).")
184188
(put 'phpstan-autoload-file 'safe-local-variable
185189
#'(lambda (v) (if (consp v)
186190
(and (eq 'root (car v)) (stringp (cdr v)))

0 commit comments

Comments
 (0)