# PHPStan baseline for the `empty.variable` errors in WordPress core. # # https://phpstan.org/error-identifiers/empty.variable # # Each entry is scoped to a single file and carries an exact occurrence count, # so that a new instance is reported as a new error rather than being absorbed # silently. Fixing an occurrence therefore means decrementing or removing its # entry here as part of the same change. # # The goal is to empty this file and delete it, along with the `includes` entry # for it in phpstan.neon.dist. # # Generated by `composer phpstan:baselines`. Do not edit by hand; regenerate with # # composer phpstan:baselines -- --identifier=empty.variable # # which reruns the analysis with this file suppressed so the errors surface again. parameters: ignoreErrors: - message: '#^Variable \$class in empty\(\) always exists and is always falsy\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-admin/includes/class-wp-posts-list-table.php - message: '#^Variable \$parent_file in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-admin/themes.php - message: '#^Variable \$search in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-includes/class-wp-query.php - message: '#^Variable \$status_type_clauses in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-includes/class-wp-query.php - message: '#^Variable \$schema in empty\(\) is never defined\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php - message: '#^Variable \$the_parent in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-includes/taxonomy.php - message: '#^Variable \$old_user_data in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable count: 1 path: ../../../src/wp-includes/user.php