]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/StringsTest.php
Merge pull request #12697 from MrPetovan/bug/deprecated
[friendica.git] / tests / src / Util / StringsTest.php
index 7bfe9906b47119ce36a226c99bbd33c837215c33..ae17920e0408be9452240fc6de01bea85c4e59c2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -113,22 +113,18 @@ class StringsTest extends TestCase
                                'input' => '',
                                'valid' => false,
                        ],
-                       'nullHex' => [
-                               'input' => null,
-                               'valid' => false,
-                       ],
                ];
        }
 
        /**
         * Tests if the string is a valid hexadecimal value
         *
-        * @param string|null $input
-        * @param bool        $valid
+        * @param string $input Input string
+        * @param bool   $valid Whether testing on valid or invalid
         *
         * @dataProvider dataIsHex
         */
-       public function testIsHex(string $input = null, bool $valid = false)
+       public function testIsHex(string $input, bool $valid = false)
        {
                self::assertEquals($valid, Strings::isHex($input));
        }