-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Discussed in #154
Originally posted by eithed December 19, 2022
I'd like to disallow different methods, with different messages, dependent upon the number of parameters used. For example, if I've got function:
function foo($bar = '', $xyz = ''){}
I'd like to display:
- if
foo()
is used anywhere, displayDon't use foo
- if
foo(*)
is used anywhere, displayDon't use foo with parameter $bar
- if
foo(*,*)
is used anywhere, displayDon't use foo with parameters $bar and $xyz
Is this possible at all?
Maintainer note: I think a param-level message could be added that would override the main message when a call would be disallowed due to disallowed/missing param.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request