mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fix deprecation warning
This commit is contained in:
parent
94479fefe5
commit
d934840f44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user