svn: /phpdoc/ja/trunk/language/predefined/ arrayaccess.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Sun, 15 Mar 2020 03:17:26 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=349449

Log:
Updating a class name of an example, following the psr-1 standard:
Class names MUST be declared in StudlyCaps.
https://www.php-fig.org/psr/psr-1/#3-namespace-and-class-names

Note by committer: as we are mostly following Pascal case for class names anyway the PSR-1 argument is irrelevant.

Bug: https://bugs.php.net/3 (Closed) extern for errno missing in debugger.c
      
Changed paths:
    U   phpdoc/ja/trunk/language/predefined/arrayaccess.xml

Modified: phpdoc/ja/trunk/language/predefined/arrayaccess.xml
===================================================================
--- phpdoc/ja/trunk/language/predefined/arrayaccess.xml	2020-03-15 02:22:01 UTC (rev 349448)
+++ phpdoc/ja/trunk/language/predefined/arrayaccess.xml	2020-03-15 03:17:26 UTC (rev 349449)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 335080 Maintainer: satoruyoshida Status: ready -->
+<!-- EN-Revision: 349446 Maintainer: satoruyoshida Status: ready -->
+<!-- Credits: mumumu -->

 <phpdoc:classref xml:id="class.arrayaccess" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">

@@ -46,7 +47,7 @@
     <programlisting role="php">
 <![CDATA[
 <?php
-class obj implements ArrayAccess {
+class Obj implements ArrayAccess {
     private $container = array();

     public function __construct() {
@@ -78,7 +79,7 @@
     }
 }

-$obj = new obj;
+$obj = new Obj;

 var_dump(isset($obj["two"]));
 var_dump($obj["two"]);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.