From 6915f0d440b53ebf5ddf5f69dc23201dc59f7234 Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Tue, 10 Dec 2024 14:10:13 +0100 Subject: [PATCH] fix phpstan --- phpstan-baseline.neon | 25 +++++++++++++++++++++++++ src/Endpoints/SalesInvoiceEndpoint.php | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index a8db7218..67a10b8f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -220,6 +220,31 @@ parameters: count: 1 path: examples/profiles/update-profile.php + - + message: "#^Access to constant DAYS_30 on an unknown class Mollie\\\\Api\\\\Types\\\\PaymentTerm\\.$#" + count: 1 + path: examples/sales-invoices/create-sales-invoice.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/sales-invoices/create-sales-invoice.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/sales-invoices/delete-sales-invoice.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/sales-invoices/list-sales-invoices.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/sales-invoices/update-sales-invoice.php + - message: "#^Variable \\$mollie might not be defined\\.$#" count: 1 diff --git a/src/Endpoints/SalesInvoiceEndpoint.php b/src/Endpoints/SalesInvoiceEndpoint.php index 9be1aded..e0379d32 100644 --- a/src/Endpoints/SalesInvoiceEndpoint.php +++ b/src/Endpoints/SalesInvoiceEndpoint.php @@ -41,7 +41,6 @@ protected function getResourceCollectionObject($count, $_links): SalesInvoiceCol * Creates a payment in Mollie. * * @param array $data An array containing details on the payment. - * @param array $filters * * @return SalesInvoice * @throws ApiException