N°5122 - Update libs to new PHP requirements

This commit is contained in:
Molkobain
2022-08-08 14:10:26 +02:00
parent 30021d9236
commit 57c36d0e51
585 changed files with 62279 additions and 20427 deletions

View File

@@ -25,6 +25,7 @@ if (! is_writable(LAMINAS_HOSTNAME_VALIDATOR_FILE)) {
exit(1);
}
/** @psalm-var list<string> $newFileContent */
$newFileContent = []; // new file content
$insertDone = false; // becomes 'true' when we find start of $validTlds declaration
$insertFinish = false; // becomes 'true' when we find end of $validTlds declaration
@@ -142,7 +143,7 @@ function getVersionFromString($prefix, $string)
* Extract new Valid TLDs from a string containing one per line.
*
* @param string $string
* @return array
* @return list<string>
*/
function getNewValidTlds($string)
{