From affebc8e34f0c606af77af28b08eccebbe319773 Mon Sep 17 00:00:00 2001 From: Dennis Ploetner Date: Sat, 27 Apr 2024 13:29:49 +0200 Subject: [PATCH 1/2] Declare strict --- tests/TestMslsCustomFilter.php | 2 +- tests/TestMslsGetSet.php | 2 +- tests/TestMslsJson.php | 2 +- tests/TestMslsLanguageArray.php | 2 +- tests/TestMslsLink.php | 2 +- tests/TestMslsLinkImageOnly.php | 2 +- tests/TestMslsLinkTextImage.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestMslsCustomFilter.php b/tests/TestMslsCustomFilter.php index 72e14669..8c4e0511 100644 --- a/tests/TestMslsCustomFilter.php +++ b/tests/TestMslsCustomFilter.php @@ -1,4 +1,4 @@ - Date: Sat, 27 Apr 2024 13:33:41 +0200 Subject: [PATCH 2/2] Declare strict and loosend params for MslsJson --- includes/MslsJson.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/MslsJson.php b/includes/MslsJson.php index aa33a5c3..196ebcfd 100644 --- a/includes/MslsJson.php +++ b/includes/MslsJson.php @@ -23,12 +23,12 @@ class MslsJson { /** MslsLanguageArray * Adds a value label pair to the internal class container * - * @param ?int $value - * @param string $label + * @param mixed $value + * @param mixed $label * * @return MslsJson */ - public function add( ?int $value, string $label ) { + public function add( $value, $label ) { $this->arr[] = [ 'value' => intval( $value ), 'label' => strval( $label ),