# PHPStan baseline for the `function.impossibleType` errors in WordPress core. # # https://phpstan.org/error-identifiers/function.impossibleType # # 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=function.impossibleType # # which reruns the analysis with this file suppressed so the errors surface again. parameters: ignoreErrors: - message: '#^Call to function is_string\(\) with bool will always evaluate to false\.$#' identifier: function.impossibleType count: 1 path: ../../../src/wp-admin/includes/class-wp-debug-data.php - message: '#^Call to function is_wp_error\(\) with 0\|0\.0\|''''\|''0''\|array\{\}\|false\|null will always evaluate to false\.$#' identifier: function.impossibleType count: 2 path: ../../../src/wp-admin/update.php - message: '#^Call to function is_wp_error\(\) with array will always evaluate to false\.$#' identifier: function.impossibleType count: 2 path: ../../../src/wp-includes/class-wp-tax-query.php - message: '#^Call to function is_string\(\) with bool will always evaluate to false\.$#' identifier: function.impossibleType count: 1 path: ../../../src/wp-includes/load.php