|
| 1 | +# PHPStan baseline for the `class.notFound` errors in WordPress core. |
| 2 | +# |
| 3 | +# https://phpstan.org/error-identifiers/class.notFound |
| 4 | +# |
| 5 | +# Each entry is scoped to a single file and carries an exact occurrence count, |
| 6 | +# so that a new instance is reported as a new error rather than being absorbed |
| 7 | +# silently. Fixing an occurrence therefore means decrementing or removing its |
| 8 | +# entry here as part of the same change. |
| 9 | +# |
| 10 | +# The goal is to empty this file and delete it, along with the `includes` entry |
| 11 | +# for it in phpstan.neon.dist. |
| 12 | +# |
| 13 | +# Generated by `composer phpstan:baselines`. Do not edit by hand; regenerate with |
| 14 | +# |
| 15 | +# composer phpstan:baselines -- --identifier=class.notFound |
| 16 | +# |
| 17 | +# which reruns the analysis with this file suppressed so the errors surface again. |
| 18 | + |
| 19 | +parameters: |
| 20 | + ignoreErrors: |
| 21 | + - |
| 22 | + message: '#^Property WP_Filesystem_FTPext\:\:\$link has unknown class FTP\\Connection as its type\.$#' |
| 23 | + identifier: class.notFound |
| 24 | + count: 1 |
| 25 | + path: ../../../src/wp-admin/includes/class-wp-filesystem-ftpext.php |
| 26 | + - |
| 27 | + message: '#^Function _crop_image_resource\(\) has invalid return type GdImage\.$#' |
| 28 | + identifier: class.notFound |
| 29 | + count: 1 |
| 30 | + path: ../../../src/wp-admin/includes/image-edit.php |
| 31 | + - |
| 32 | + message: '#^Function _flip_image_resource\(\) has invalid return type GdImage\.$#' |
| 33 | + identifier: class.notFound |
| 34 | + count: 1 |
| 35 | + path: ../../../src/wp-admin/includes/image-edit.php |
| 36 | + - |
| 37 | + message: '#^Function _rotate_image_resource\(\) has invalid return type GdImage\.$#' |
| 38 | + identifier: class.notFound |
| 39 | + count: 1 |
| 40 | + path: ../../../src/wp-admin/includes/image-edit.php |
| 41 | + - |
| 42 | + message: '#^Parameter \$img of function _crop_image_resource\(\) has invalid type GdImage\.$#' |
| 43 | + identifier: class.notFound |
| 44 | + count: 1 |
| 45 | + path: ../../../src/wp-admin/includes/image-edit.php |
| 46 | + - |
| 47 | + message: '#^Parameter \$img of function _flip_image_resource\(\) has invalid type GdImage\.$#' |
| 48 | + identifier: class.notFound |
| 49 | + count: 1 |
| 50 | + path: ../../../src/wp-admin/includes/image-edit.php |
| 51 | + - |
| 52 | + message: '#^Parameter \$img of function _rotate_image_resource\(\) has invalid type GdImage\.$#' |
| 53 | + identifier: class.notFound |
| 54 | + count: 1 |
| 55 | + path: ../../../src/wp-admin/includes/image-edit.php |
| 56 | + - |
| 57 | + message: '#^Function load_image_to_edit\(\) has invalid return type GdImage\.$#' |
| 58 | + identifier: class.notFound |
| 59 | + count: 1 |
| 60 | + path: ../../../src/wp-admin/includes/image.php |
| 61 | + - |
| 62 | + message: '#^Call to method html\(\) on an unknown class WP_Press_This_Plugin\.$#' |
| 63 | + identifier: class.notFound |
| 64 | + count: 1 |
| 65 | + path: ../../../src/wp-admin/press-this.php |
| 66 | + - |
| 67 | + message: '#^Method WP_Image_Editor_GD\:\:_resize\(\) has invalid return type GdImage\.$#' |
| 68 | + identifier: class.notFound |
| 69 | + count: 1 |
| 70 | + path: ../../../src/wp-includes/class-wp-image-editor-gd.php |
| 71 | + - |
| 72 | + message: '#^Parameter \$image of method WP_Image_Editor_GD\:\:_save\(\) has invalid type GdImage\.$#' |
| 73 | + identifier: class.notFound |
| 74 | + count: 1 |
| 75 | + path: ../../../src/wp-includes/class-wp-image-editor-gd.php |
| 76 | + - |
| 77 | + message: '#^Property WP_Image_Editor_GD\:\:\$image has unknown class GdImage as its type\.$#' |
| 78 | + identifier: class.notFound |
| 79 | + count: 1 |
| 80 | + path: ../../../src/wp-includes/class-wp-image-editor-gd.php |
| 81 | + - |
| 82 | + message: '#^Function wp_imagecreatetruecolor\(\) has invalid return type GdImage\.$#' |
| 83 | + identifier: class.notFound |
| 84 | + count: 1 |
| 85 | + path: ../../../src/wp-includes/media.php |
| 86 | + - |
| 87 | + message: '#^Parameter \$image of function is_gd_image\(\) has invalid type GdImage\.$#' |
| 88 | + identifier: class.notFound |
| 89 | + count: 1 |
| 90 | + path: ../../../src/wp-includes/media.php |
0 commit comments