Skip to content

Commit 88316f7

Browse files
committed
Add type conversion for arg compatibility
1 parent d435866 commit 88316f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

php.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ The regular expression this function returns will check for other
175175
keywords that can appear in method signatures, e.g. 'final' and
176176
'static'. The regular expression will have one capture group
177177
which will be the name of the method."
178+
(when (stringp visibility)
179+
(setq visibility (list visibility)))
178180
(rx-form `(: line-start
179181
(* (syntax whitespace))
180182
,@(if visibility

0 commit comments

Comments
 (0)