mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
37b30e4e87
commit
9d539daa5f
1 changed files with 2 additions and 2 deletions
|
@ -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"]);
|
||||
|
|
Loading…
Reference in a new issue