From 1f165a416ebd51eeeab7ae470448efea1ce3f4ba Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 19 Oct 2023 11:15:56 +0200 Subject: [PATCH] Ignore unused parameters in constructor --- .phpstan.neon | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.phpstan.neon b/.phpstan.neon index c8c69be..8b7e85a 100644 --- a/.phpstan.neon +++ b/.phpstan.neon @@ -34,3 +34,18 @@ parameters: message: "#^Property Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull\\:\\:\\$parent is never read, only written\\.$#" count: 1 path: src/V1/ResourceNull.php + + - + message: "#^Constructor of an anonymous class has an unused parameter \\$data\\.$#" + count: 1 + path: tests/BC/ElementTest.php + + - + message: "#^Constructor of an anonymous class has an unused parameter \\$manager\\.$#" + count: 1 + path: tests/BC/ElementTest.php + + - + message: "#^Constructor of an anonymous class has an unused parameter \\$parent\\.$#" + count: 1 + path: tests/BC/ElementTest.php