From b3df04bcf832cc2f8f21d4d43bb2f90f6ae0349f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 8 Jan 2025 02:26:18 -0300 Subject: [PATCH] Remove the buffer_needed global variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces it with Export::$bufferNeeded static property. Signed-off-by: MaurĂ­cio Meneghini Fauth --- phpstan-baseline.neon | 2 +- psalm.xml | 1 - src/Controllers/Export/ExportController.php | 5 ++--- src/Export/Export.php | 3 ++- tests/unit/Export/ExportTest.php | 4 ++-- tests/unit/Plugins/Export/ExportCodegenTest.php | 2 +- tests/unit/Plugins/Export/ExportCsvTest.php | 4 ++-- tests/unit/Plugins/Export/ExportExcelTest.php | 4 ++-- tests/unit/Plugins/Export/ExportHtmlwordTest.php | 4 ++-- tests/unit/Plugins/Export/ExportJsonTest.php | 2 +- tests/unit/Plugins/Export/ExportLatexTest.php | 2 +- tests/unit/Plugins/Export/ExportMediawikiTest.php | 2 +- tests/unit/Plugins/Export/ExportOdsTest.php | 2 +- tests/unit/Plugins/Export/ExportOdtTest.php | 2 +- tests/unit/Plugins/Export/ExportPdfTest.php | 2 +- tests/unit/Plugins/Export/ExportPhparrayTest.php | 2 +- tests/unit/Plugins/Export/ExportSqlTest.php | 2 +- tests/unit/Plugins/Export/ExportTexytextTest.php | 2 +- tests/unit/Plugins/Export/ExportXmlTest.php | 2 +- tests/unit/Plugins/Export/ExportYamlTest.php | 2 +- 20 files changed, 25 insertions(+), 26 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 2391c332b3..884c46bc9e 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -7635,7 +7635,7 @@ parameters: - message: '#^Only booleans are allowed in an if condition, mixed given\.$#' identifier: if.condNotBoolean - count: 3 + count: 2 path: src/Export/Export.php - diff --git a/psalm.xml b/psalm.xml index 66e2bc1b98..ee41655e36 100644 --- a/psalm.xml +++ b/psalm.xml @@ -39,7 +39,6 @@