Skip to content

isset() check flagged as undefined variable #202

@paulschreiber

Description

@paulschreiber

I would not expect and error from this code:

21 if ( ! isset( $content_width ) ) {
22 	$content_width = 944;
23 }
FILE: functions.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
 21 | WARNING | Variable $content_width is undefined.
    |         | (VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable)
-------------------------------------------------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions