From 47d07484dd8eaec7b71fe93bb5313f68e55be073 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 21 Jul 2021 01:12:28 +0200 Subject: [PATCH] Add to phpstan and psalm baselines the mistakes from tcpdf doc blocks See: https://github.com/tecnickcom/TCPDF/pull/402 Signed-off-by: William Desportes --- phpstan-baseline.neon | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 24c3b87e6d..94e19ceabc 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -785,6 +785,16 @@ parameters: count: 1 path: libraries/classes/OutputBuffering.php + - + message: "#^Parameter \\#1 \\$font of method TCPDF\\:\\:setFooterFont\\(\\) expects array\\, array\\ given\\.$#" + count: 1 + path: libraries/classes/Pdf.php + + - + message: "#^Parameter \\#7 \\$pdfa of method TCPDF\\:\\:__construct\\(\\) expects int, bool given\\.$#" + count: 1 + path: libraries/classes/Pdf.php + - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Auth\\\\AuthenticationCookie\\:\\:cookieEncrypt\\(\\) should return string but returns string\\|false\\.$#" count: 1