Update coding style for upcoming PHP-CS-Fixer changes

Once we bump minimum PHP version, we will get newer PHP-CS-Fixer,
which will try to apply this cleanups.

Also manually tweak anonymous functions so that they are cleanly formatted
once we switch to `fn` syntax.
This commit is contained in:
Jan Tojnar
2024-03-18 09:16:43 +01:00
committed by Jérémy Benoist
parent f28191a728
commit 648d8c605b
3 changed files with 43 additions and 24 deletions
+1 -1
View File
@@ -550,7 +550,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
}
}
private function getReadability(string $html, string $url = null, string $parser = 'libxml', bool $useTidy = true): Readability
private function getReadability(string $html, ?string $url = null, string $parser = 'libxml', bool $useTidy = true): Readability
{
$readability = new Readability($html, $url, $parser, $useTidy);