mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Calling non-static methods statically (bug #34095)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194640 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9e730ae22d
commit
f29b6cbdee
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<sect1 id="language.oop5.static">
|
||||
<title>Static Keyword</title>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
compatibility with PHP 4, if no <link
|
||||
linkend="language.oop5.visibility">visibility</link>
|
||||
declaration is used, then the member or method will be treated
|
||||
as if it was declared as <literal>public static</literal>.
|
||||
as if it was declared as <literal>public</literal>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -39,6 +39,10 @@
|
|||
operator ->.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Calling non-static methods statically generates an E_STRICT level warning.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>Static member example</title>
|
||||
<programlisting role="php">
|
||||
|
|
Loading…
Reference in a new issue