Home
last modified time | relevance | path

Searched refs:prop2 (Results 1 – 25 of 40) sorted by relevance

12

/PHP-8.4/Zend/tests/property_hooks/
H A Dprivate_override.phpt8 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 Dinvalid_abstract.phpt11 public abstract $prop2 {
22 public $prop2 {
31 $b->prop2;
32 $b->prop2 = 1;
40 A::$prop2::get
41 B::$prop2::set
H A Dbacked_delegated_read_wirte.phpt31 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 Drecursion.phpt13 public int $prop2 {
14 get { return isset($this->prop2); }
23 var_dump(isset($test->prop2));
34 ["prop2"]=>
H A Dgh15644.phpt10 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 Dexplicit_set_value_parameter_type.phpt16 var_dump($test->prop = ['prop1', 'prop2']);
26 string(5) "prop2"
28 string(12) "prop1, prop2"
H A Dupdate_constants_virtual_prop.phpt8 public $prop2 = FOO;
12 var_dump($test->prop2);
/PHP-8.4/Zend/tests/type_declarations/union_types/
H A Dincdec_prop.phpt8 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 Dtyped_properties_096.phpt8 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 Dtyped_properties_076.phpt22 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 Dtyped_properties_092.phpt12 public int $prop2;
22 $this->prop2 = ref($str);
39 ["prop2"]=>
/PHP-8.4/Zend/tests/readonly_props/
H A Dcache_slot.phpt8 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 Dreadonly_modification.phpt8 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.phpt8 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 DReflectionParameter_isDefault.phpt16 $prop2 = $props[1];
17 var_dump($prop2->isDefault());
23 $prop2 = new ReflectionProperty($a, 'myprop');
25 var_dump($prop2->isDefault());
H A Dbug79683.phpt18 private string $prop2;
24 $property = $reflector->getProperty('prop2');
33 ["prop2":"B":private]=>
H A Dbug78774.phpt8 public stdClass|Foo $prop2;
14 $rp2 = $rc->getProperty('prop2');
20 $test->prop2 = new stdClass;
/PHP-8.4/Zend/tests/
H A Dctor_promotion_mixing.phpt7 public string $prop2;
10 $this->prop2 = $prop1 . $param2;
21 ["prop2"]=>
40 Property [ public string $prop2 ]
H A Dbug79862.phpt9 private static $prop2;
16 $this->prop2 = 2;
22 var_dump(self::$prop2);
30 protected $prop2;
55 ["prop2":protected]=>
H A Ddynamic_prop_deprecation.phpt11 $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 Ddnf_intersection_and_null.phpt14 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 Dassign_obj_002.phpt12 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 DReflectionProperty_getHooks.phpt8 public $prop2 { get {} set {} }
29 string(11) "$prop2::get"
36 string(11) "$prop2::set"
/PHP-8.4/ext/spl/tests/
H A DarrayObject_asort_basic2.phpt13 public $prop2 = 'z';
35 ["prop2"]=>
46 ["prop2"]=>
H A DarrayObject_ksort_basic2.phpt13 public $z = 'prop2';
36 string(5) "prop2"
47 string(5) "prop2"

Completed in 27 milliseconds

12