1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-23 22:52:11 +01:00

XMLWriter: Change setIndent as it expects a boolean

78a71e92eb
This commit is contained in:
Yoshinari Takaoka
2025-12-28 23:01:01 +09:00
parent 6010b04803
commit 58a6a3027e

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4a742792da6fd1ba27acd118bfeeed326c8d9aaf Maintainer: takagi Status: ready -->
<!-- EN-Revision: 78a71e92ebbf67a604e2225e2d005ac7b9559610 Maintainer: takagi Status: ready -->
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
<!-- Credits: mumumu -->
<refentry xml:id="xmlwriter.setindent" xmlns="http://docbook.org/ns/docbook">
@@ -80,7 +80,7 @@
<?php
$writer = new XMLWriter();
$writer->openMemory();
$writer->setIndent(2);
$writer->setIndent(true);
$writer->startDocument();
$writer->startElement('p');
$writer->text('before');