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.

-- 
Provided by anonymous 102110 (tunt081295@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349446 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
George Peter Banyard 2020-03-15 01:38:47 +00:00
parent 37b30e4e87
commit 9d539daa5f

View file

@ -45,7 +45,7 @@
<programlisting role="php">
<![CDATA[
<?php
class obj implements ArrayAccess {
class Obj implements ArrayAccess {
private $container = array();
public function __construct() {
@ -77,7 +77,7 @@ class obj implements ArrayAccess {
}
}
$obj = new obj;
$obj = new Obj;
var_dump(isset($obj["two"]));
var_dump($obj["two"]);