/PHP-8.4/Zend/tests/property_hooks/ |
H A D | private_override.phpt | 8 private $prop2 { 16 $this->prop2; 26 public $prop2 { 42 $b->prop2; 43 $b->prop2 = 1; 47 A::$prop2::get 48 A::$prop2::set 50 A::$prop2::get 51 A::$prop2::set 55 B::$prop2::get [all …]
|
H A D | invalid_abstract.phpt | 11 public abstract $prop2 { 22 public $prop2 { 31 $b->prop2; 32 $b->prop2 = 1; 40 A::$prop2::get 41 B::$prop2::set
|
H A D | backed_delegated_read_wirte.phpt | 31 public $prop2 = 42 { 32 get => $this->prop2; 38 public $prop2 = 42 { 39 get => parent::$prop2::get(); 40 set { parent::$prop2::set($value); } 59 $child->prop2 = 43; 60 var_dump($child->prop2);
|
H A D | recursion.phpt | 13 public int $prop2 { 14 get { return isset($this->prop2); } 23 var_dump(isset($test->prop2)); 34 ["prop2"]=>
|
H A D | gh15644.phpt | 10 public private(set) string $prop2 { 11 get => $this->prop2; 24 $c->prop2 = 'hello world'; 32 Cannot modify private(set) property C::$prop2 from global scope
|
H A D | explicit_set_value_parameter_type.phpt | 16 var_dump($test->prop = ['prop1', 'prop2']); 26 string(5) "prop2" 28 string(12) "prop1, prop2"
|
H A D | update_constants_virtual_prop.phpt | 8 public $prop2 = FOO; 12 var_dump($test->prop2);
|
/PHP-8.4/Zend/tests/type_declarations/union_types/ |
H A D | incdec_prop.phpt | 8 public int|bool $prop2; 57 $x = $test->prop2++; 64 $x = ++$test->prop2; 71 $x = $test->prop2--; 78 $x = --$test->prop2; 85 $r =& $test->prop2; 86 $x = $test->prop2++; 93 $r =& $test->prop2; 94 $x = ++$test->prop2; 101 $r =& $test->prop2; [all …]
|
/PHP-8.4/Zend/tests/type_declarations/ |
H A D | typed_properties_096.phpt | 8 public int $prop2; 12 $test->prop2 = 123; 13 $ref =& $test->prop2; 23 public ?int $prop2; 27 $test->prop2 = null; 28 $ref =& $test->prop2; 38 ["prop2"]=> 44 ["prop2"]=>
|
H A D | typed_properties_076.phpt | 22 function invalid(Test $test, string $prop1, string $prop2, $value) { 24 $test->$prop2 = $value; 25 $test->$prop1 =& $test->$prop2; 26 echo "Invalid assignment $prop1 =& $prop2 did not error\n"; 30 $test->$prop2 =& $test->$prop1; 31 echo "Invalid assignment $prop2 =& $prop1 did not error\n"; 35 function valid(Test $test, string $prop1, string $prop2, $value) { 37 $test->$prop2 = $value; 38 $test->$prop1 =& $test->$prop2; 40 echo "Valid assignment $prop1 =& $prop2 threw {$e->getMessage()}\n"; [all …]
|
H A D | typed_properties_092.phpt | 12 public int $prop2; 22 $this->prop2 = ref($str); 39 ["prop2"]=>
|
/PHP-8.4/Zend/tests/readonly_props/ |
H A D | cache_slot.phpt | 8 public readonly array $prop2; 14 $this->prop2 = []; 15 $this->prop2[] = 1; 49 var_dump($test->prop2); 62 (function() { $this->prop2 = []; })->call($test); 64 $this->prop2[] = 1; 76 var_dump($test->prop2); 96 Cannot indirectly modify readonly property Test::$prop2 97 Cannot modify readonly property Test::$prop2 110 Cannot indirectly modify readonly property Test::$prop2 [all …]
|
H A D | readonly_modification.phpt | 8 readonly public array $prop2; 13 $this->prop2 = []; 57 var_dump($test->prop2); // Read. 59 $test->prop2[] = 1; 64 $test->prop2[0][] = 1; 81 Cannot indirectly modify readonly property Test::$prop2 82 Cannot indirectly modify readonly property Test::$prop2
|
/PHP-8.4/ext/standard/tests/serialize/ |
H A D | __serialize_001.phpt | 8 public $prop2; 10 return ["value" => $this->prop, 42 => $this->prop2]; 14 $this->prop2 = $data[42]; 20 $test->prop2 = "barfoo"; 30 ["prop2"]=>
|
/PHP-8.4/ext/reflection/tests/ |
H A D | ReflectionParameter_isDefault.phpt | 16 $prop2 = $props[1]; 17 var_dump($prop2->isDefault()); 23 $prop2 = new ReflectionProperty($a, 'myprop'); 25 var_dump($prop2->isDefault());
|
H A D | bug79683.phpt | 18 private string $prop2; 24 $property = $reflector->getProperty('prop2'); 33 ["prop2":"B":private]=>
|
H A D | bug78774.phpt | 8 public stdClass|Foo $prop2; 14 $rp2 = $rc->getProperty('prop2'); 20 $test->prop2 = new stdClass;
|
/PHP-8.4/Zend/tests/ |
H A D | ctor_promotion_mixing.phpt | 7 public string $prop2; 10 $this->prop2 = $prop1 . $param2; 21 ["prop2"]=> 40 Property [ public string $prop2 ]
|
H A D | bug79862.phpt | 9 private static $prop2; 16 $this->prop2 = 2; 22 var_dump(self::$prop2); 30 protected $prop2; 55 ["prop2":protected]=>
|
H A D | dynamic_prop_deprecation.phpt | 11 $obj->prop2 += 1; // Deprecated 12 $obj->prop2 += 1; // Ok 39 Deprecated: Creation of dynamic property Test::$prop2 is deprecated in %s on line %d 41 Warning: Undefined property: Test::$prop2 in %s on line %d
|
/PHP-8.4/Zend/tests/type_declarations/dnf_types/ |
H A D | dnf_intersection_and_null.phpt | 14 public null|(X&Y) $prop2; 36 $test->prop2 = $a; 37 $test->prop2 = $n; 56 $test->prop2 = $c; 73 Cannot assign C to property Test::$prop2 of type (X&Y)|null
|
/PHP-8.4/ext/opcache/tests/jit/ |
H A D | assign_obj_002.phpt | 12 public int $prop2; 21 $o->prop2 = $undef; 35 Cannot assign null to property Test::$prop2 of type int
|
/PHP-8.4/ext/reflection/tests/property_hooks/ |
H A D | ReflectionProperty_getHooks.phpt | 8 public $prop2 { get {} set {} } 29 string(11) "$prop2::get" 36 string(11) "$prop2::set"
|
/PHP-8.4/ext/spl/tests/ |
H A D | arrayObject_asort_basic2.phpt | 13 public $prop2 = 'z'; 35 ["prop2"]=> 46 ["prop2"]=>
|
H A D | arrayObject_ksort_basic2.phpt | 13 public $z = 'prop2'; 36 string(5) "prop2" 47 string(5) "prop2"
|