Fix deprecation warning

This commit is contained in:
Niels Dossche 2024-05-10 16:26:44 +02:00
parent 94479fefe5
commit d934840f44
No known key found for this signature in database
GPG Key ID: B8A8AD166DF0E2E5

View File

@ -6,7 +6,7 @@ xmlreader
<?php
class MyXMLReader extends XMLReader
{
public static function open(string $uri, string $encoding = null, int $flags = 0): bool|\XMLReader
public static function open(string $uri, ?string $encoding = null, int $flags = 0): bool|\XMLReader
{
echo 'overridden', PHP_EOL;
return true;