Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Severity Level: Warning
Description
Parameters should not have more than one type specifier. Multiple type specifiers on parameters can cause runtime errors.
How
Ensure each parameter has only 1 type specifier.
Example
Wrong
function Test-Script
{
[CmdletBinding()]
Param
(
[switch]
[int]
$Switch
)
}
Correct
function Test-Script
{
[CmdletBinding()]
Param
(
[switch]
$Switch
)
}