mirror of
https://github.com/php/php-src.git
synced 2025-08-17 06:28:50 +02:00

According to the DOM specification, this argument should be nullable. It's also supposed to be a required argument, but not changing that at this point.
15 lines
250 B
PHP
15 lines
250 B
PHP
--TEST--
|
|
DOMImplementation::createDocument()
|
|
--SKIPIF--
|
|
<?php
|
|
include('skipif.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
declare(strict_types=1);
|
|
$x = new DOMImplementation();
|
|
$doc = $x->createDocument(null, 'html');
|
|
echo $doc->saveHTML();
|
|
?>
|
|
--EXPECT--
|
|
<html></html>
|