Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 578 Bytes

File metadata and controls

35 lines (25 loc) · 578 Bytes
description Avoid Invoking Empty Members
ms.custom PSSA v1.21.0
ms.date 06/28/2023
ms.topic reference
title 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')