summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/typed_properties_090.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/type_declarations/typed_properties_090.phpt')
-rw-r--r--Zend/tests/type_declarations/typed_properties_090.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/Zend/tests/type_declarations/typed_properties_090.phpt b/Zend/tests/type_declarations/typed_properties_090.phpt
index 3b75aaa843..97bd2ed523 100644
--- a/Zend/tests/type_declarations/typed_properties_090.phpt
+++ b/Zend/tests/type_declarations/typed_properties_090.phpt
@@ -4,17 +4,17 @@ Unsetting typed properties containing a reference must respect shadowing
<?php
class A {
- private int $prop = 42;
+ private int $prop = 42;
- public function test() {
- $x =& $this->prop;
- unset($this->prop);
- $x = "foo";
- var_dump($x);
- }
+ public function test() {
+ $x =& $this->prop;
+ unset($this->prop);
+ $x = "foo";
+ var_dump($x);
+ }
}
class B extends A {
- private $prop;
+ private $prop;
}
$b = new B;