From b6c95c8d14c436b71c3fe77f53bd2e9bf9311713 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 08:37:14 +0100 Subject: [PATCH] chore(deps): update dependency phpstan/phpstan to v2.1.46 (#3383) * chore(deps): update dependency phpstan/phpstan to v2.1.46 * chore: update phpstan baseline for v2.1.46 Closure method errors in di.php Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/fb80efa5-2d6d-4046-8e4b-19b428abecaa Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> --- composer.lock | 8 +++---- phpstan-baseline.neon | 54 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index 28e3ecf9b..0680abb16 100644 --- a/composer.lock +++ b/composer.lock @@ -8085,11 +8085,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.44", + "version": "2.1.46", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/4a88c083c668b2c364a425c9b3171b2d9ea5d218", - "reference": "4a88c083c668b2c364a425c9b3171b2d9ea5d218", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a193923fc2d6325ef4e741cf3af8c3e8f54dbf25", + "reference": "a193923fc2d6325ef4e741cf3af8c3e8f54dbf25", "shasum": "" }, "require": { @@ -8134,7 +8134,7 @@ "type": "github" } ], - "time": "2026-03-25T17:34:21+00:00" + "time": "2026-04-01T09:25:14+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 87a3e43eb..b3c7bb788 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,5 +1,59 @@ parameters: ignoreErrors: + - + message: '#^Call to an undefined method Closure\:\:adminLink\(\)\.$#' + identifier: method.notFound + count: 2 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:delete\(\)\.$#' + identifier: method.notFound + count: 2 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:findAll\(\)\.$#' + identifier: method.notFound + count: 2 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:get\(\)\.$#' + identifier: method.notFound + count: 2 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:getExistingModelById\(\)\.$#' + identifier: method.notFound + count: 2 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:isAdminLoggedIn\(\)\.$#' + identifier: method.notFound + count: 1 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:isClientLoggedIn\(\)\.$#' + identifier: method.notFound + count: 1 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:link\(\)\.$#' + identifier: method.notFound + count: 3 + path: src/di.php + + - + message: '#^Call to an undefined method Closure\:\:set\(\)\.$#' + identifier: method.notFound + count: 1 + path: src/di.php + - message: '#^Call to an undefined method Monolog\\Handler\\HandlerInterface\:\:setFormatter\(\)\.$#' identifier: method.notFound