Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 554 Bytes

AvoidInvokingEmptyMembers.md

File metadata and controls

34 lines (24 loc) · 554 Bytes
description ms.date ms.topic title
Avoid Invoking Empty Members
06/28/2023
reference
AvoidInvokingEmptyMembers

AvoidInvokingEmptyMembers

Severity Level: Warning

Description

Invoking non-constant members can cause potential bugs. Please double check the syntax to make sure that invoked members are constants.

How

Provide the requested members for a given type or class.

Example

Wrong

$MyString = 'abc'
$MyString.('len'+'gth')

Correct

$MyString = 'abc'
$MyString.('length')