From 91978589eb9ba42d6e71a0cd2be0c776f056694d Mon Sep 17 00:00:00 2001 From: Zack Galbreath Date: Mon, 30 Sep 2024 10:10:04 -0400 Subject: [PATCH] Regenerate phpstan baseline --- phpstan-baseline.neon | 149 ++++-------------------------------------- 1 file changed, 12 insertions(+), 137 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index cdbe20351..9ecb86b8d 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -241,7 +241,7 @@ parameters: #^Call to deprecated function pdo_error\\(\\)\\: 04/01/2023$# """ - count: 7 + count: 6 path: app/Http/Controllers/AdminController.php - @@ -345,26 +345,6 @@ parameters: count: 1 path: app/Http/Controllers/AdminController.php - - - message: "#^Method App\\\\Http\\\\Controllers\\\\AdminController\\:\\:delete_unused_rows\\(\\) has parameter \\$field with no type specified\\.$#" - count: 1 - path: app/Http/Controllers/AdminController.php - - - - message: "#^Method App\\\\Http\\\\Controllers\\\\AdminController\\:\\:delete_unused_rows\\(\\) has parameter \\$selectfield with no type specified\\.$#" - count: 1 - path: app/Http/Controllers/AdminController.php - - - - message: "#^Method App\\\\Http\\\\Controllers\\\\AdminController\\:\\:delete_unused_rows\\(\\) has parameter \\$table with no type specified\\.$#" - count: 1 - path: app/Http/Controllers/AdminController.php - - - - message: "#^Method App\\\\Http\\\\Controllers\\\\AdminController\\:\\:delete_unused_rows\\(\\) has parameter \\$targettable with no type specified\\.$#" - count: 1 - path: app/Http/Controllers/AdminController.php - - message: "#^Method App\\\\Http\\\\Controllers\\\\AdminController\\:\\:removeBuilds\\(\\) never returns Illuminate\\\\Http\\\\RedirectResponse so it can be removed from the return type\\.$#" count: 1 @@ -3046,6 +3026,11 @@ parameters: count: 1 path: app/Utils/AuthTokenUtil.php + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 1 + path: app/Utils/DatabaseCleanupUtils.php + - message: "#^Dynamic call to static method Illuminate\\\\Database\\\\Eloquent\\\\Builder\\\\:\\:limit\\(\\)\\.$#" count: 1 @@ -3056,6 +3041,11 @@ parameters: count: 1 path: app/Utils/DatabaseCleanupUtils.php + - + message: "#^Parameter \\#1 \\$array of function array_chunk expects array, array\\\\|int given\\.$#" + count: 1 + path: app/Utils/DatabaseCleanupUtils.php + - message: """ #^Call to deprecated function pdo_real_escape_string\\(\\)\\: @@ -12540,14 +12530,6 @@ parameters: count: 1 path: app/cdash/include/common.php - - - message: """ - #^Call to deprecated function add_last_sql_error\\(\\)\\: - 04/22/2023$# - """ - count: 1 - path: app/cdash/include/common.php - - message: """ #^Call to deprecated function add_log\\(\\)\\: @@ -12625,7 +12607,7 @@ parameters: - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 5 + count: 2 path: app/cdash/include/common.php - @@ -12713,11 +12695,6 @@ parameters: count: 1 path: app/cdash/include/common.php - - - message: "#^Function delete_rows_chunked\\(\\) has parameter \\$ids with no value type specified in iterable type array\\.$#" - count: 1 - path: app/cdash/include/common.php - - message: "#^Function generate_XSLT\\(\\) has parameter \\$xml with no type specified\\.$#" count: 1 @@ -12853,21 +12830,6 @@ parameters: count: 1 path: app/cdash/include/common.php - - - message: "#^Function remove_build\\(\\) has no return type specified\\.$#" - count: 1 - path: app/cdash/include/common.php - - - - message: "#^Function remove_build\\(\\) has parameter \\$buildid with no type specified\\.$#" - count: 1 - path: app/cdash/include/common.php - - - - message: "#^Function remove_build_chunked\\(\\) has parameter \\$buildid with no type specified\\.$#" - count: 1 - path: app/cdash/include/common.php - - message: "#^Function remove_project_builds\\(\\) has parameter \\$projectid with no type specified\\.$#" count: 1 @@ -19351,93 +19313,6 @@ parameters: count: 3 path: app/cdash/tests/test_autoremovebuilds.php - - - message: """ - #^Call to deprecated function pdo_fetch_array\\(\\)\\: - 04/01/2023$# - """ - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: """ - #^Call to deprecated method execute\\(\\) of class CDash\\\\Database\\: - 04/22/2023 Use Laravel query builder or Eloquent instead$# - """ - count: 4 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Call to deprecated method pass\\(\\) of class SimpleTestCase\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: """ - #^Call to deprecated method prepare\\(\\) of class CDash\\\\Database\\: - 04/22/2023 Use Laravel query builder or Eloquent instead$# - """ - count: 6 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: """ - #^Call to deprecated method query\\(\\) of class CDash\\\\Database\\: - 04/22/2023 Use Laravel query builder or Eloquent instead$# - """ - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Cannot access offset 0 on array\\|false\\|null\\.$#" - count: 2 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Cannot call method fetchColumn\\(\\) on PDOStatement\\|false\\.$#" - count: 4 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Loose comparison via \"\\!\\=\" is not allowed\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Method AutoRemoveBuildsOnSubmitTestCase\\:\\:enableAutoRemoveConfigSetting\\(\\) has no return type specified\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Method AutoRemoveBuildsOnSubmitTestCase\\:\\:setAutoRemoveTimeFrame\\(\\) has no return type specified\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Method AutoRemoveBuildsOnSubmitTestCase\\:\\:testBuildsRemovedOnSubmission\\(\\) has no return type specified\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Only booleans are allowed in an if condition, int\\|string\\|false\\|null given\\.$#" - count: 2 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Parameter \\#1 \\$stmt of method CDash\\\\Database\\:\\:execute\\(\\) expects PDOStatement, PDOStatement\\|false given\\.$#" - count: 4 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Parameter \\#1 \\$time of method CDash\\\\Model\\\\BuildGroup\\:\\:SetEndTime\\(\\) expects Illuminate\\\\Support\\\\Carbon, Illuminate\\\\Support\\\\Carbon\\|false given\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - - - message: "#^Property AutoRemoveBuildsOnSubmitTestCase\\:\\:\\$config_file has no type specified\\.$#" - count: 1 - path: app/cdash/tests/test_autoremovebuilds_on_submit.php - - message: """ #^Call to deprecated function pdo_execute\\(\\)\\: