Skip to content

Commit 0ecd4d1

Browse files
authored
省略可能な括弧について追記 (#163)
1 parent f8e578c commit 0ecd4d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

language/oop5/basic.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f94d903985119d3ac00f4528551df947f57b667f Maintainer: takagi Status: ready -->
4-
<!-- CREDITS: hirokawa,mumumu -->
3+
<!-- EN-Revision: 1d92bcca7524c50fc41056ea4c04e1032eb9e055 Maintainer: takagi Status: ready -->
4+
<!-- CREDITS: hirokawa,mumumu,jdkfx -->
55

66
<sect1 xml:id="language.oop5.basic" xmlns="http://docbook.org/ns/docbook">
77
<title>クラスの基礎</title>
@@ -380,6 +380,8 @@ bool(true)
380380
<![CDATA[
381381
<?php
382382
echo (new DateTime())->format('Y');
383+
// PHP 8.4.0 以降、囲む括弧は省略可能です。
384+
echo new DateTime()->format('Y');
383385
?>
384386
]]>
385387
</programlisting>

0 commit comments

Comments
 (0)