summaryrefslogtreecommitdiff
path: root/tests/classes/property_override_protected_publicStatic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/property_override_protected_publicStatic.phpt')
-rw-r--r--tests/classes/property_override_protected_publicStatic.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/classes/property_override_protected_publicStatic.phpt b/tests/classes/property_override_protected_publicStatic.phpt
index 8efdf5f6fd..37865cc7d4 100644
--- a/tests/classes/property_override_protected_publicStatic.phpt
+++ b/tests/classes/property_override_protected_publicStatic.phpt
@@ -10,7 +10,7 @@ Redeclare inherited protected property as public static.
echo $this->p . "\n";
}
}
-
+
class B extends A
{
public static $p = "B::p (static)";
@@ -19,11 +19,11 @@ Redeclare inherited protected property as public static.
echo self::$p . "\n";
}
}
-
-
+
+
$a = new A;
$a->showA();
-
+
$b = new B;
$b->showA();
B::showB();