com php-langspec: Avoid static call to non-static method: tests/traits/traits.phpt

[email protected] (Nikita Popov) Mon, 08 Apr 2019 07:12:32 +0000
Newsgroups php.standards.cvs
Message-ID <[email protected]>
Commit:    2f0881e79809cb0e910b38208f60a46106a60cf3=0AAuthor:    Nikita Pop=
ov <[email protected]>         Mon, 8 Apr 2019 09:12:32 +0200=0AParents:=
   231e64995d5e6446101aa3da0d5ef62e2b5f204f=0ABranches:  master=0A=0ALink: =
      http://git.php.net/?p=3Dphp-langspec.git;a=3Dcommitdiff;h=3D2f0881e79=
809cb0e910b38208f60a46106a60cf3=0A=0ALog:=0AAvoid static call to non-static=
 method=0A=0AChanged paths:=0A  M  tests/traits/traits.phpt=0A=0A=0ADiff:=
=0Adiff --git a/tests/traits/traits.phpt b/tests/traits/traits.phpt=0Aindex=
 4aebc6d..6887bad 100644=0A--- a/tests/traits/traits.phpt=0A+++ b/tests/tra=
its/traits.phpt=0A@@ -238,9 +238,8 @@ trait T7=0A =09}=0A }=0A =0A-T7::f();=
 =09// calls f like a static function with class name being the trait name=
=0A+// T7::f(); =09// Static call to non-static method is not allowed=0A =
=0A-echo "-------\n";=0A T7::g();=0A =0A /*=0A@@ -336,10 +335,6 @@ $v =3D 1=
=0A Inside T6::f=0A $v =3D 2=0A =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D Using a Trait without a Class =3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A-%AInside T7=0A-In=
side T7=0A-Inside T7::f=0A--------=0A Inside T7=0A Inside T7=0A Inside T7::=
g=0A