Home
last modified time | relevance | path

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

12

/PHP-8.2/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 …]
H A Dinheritance.phpt10 private A|B|int $prop2;
21 private A|B|int $prop2;
39 private A|B|int $prop2;
/PHP-8.2/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.2/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 modify readonly property Test::$prop2
97 Cannot modify readonly property Test::$prop2
110 Cannot 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 modify readonly property Test::$prop2
82 Cannot modify readonly property Test::$prop2
/PHP-8.2/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.2/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;
H A Dbug40794.phpt8 $obj->prop2 = '2';
27 ["prop2"]=>
/PHP-8.2/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
H A Dbug68191.phpt9 $obj->prop2 =& $obj->prop1;
10 $obj->prop2 .= 'xyz';
H A Dbug73816.phpt22 ["prop2":"class@anonymous":private]=>
/PHP-8.2/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
H A Ddnf_intersection_and_single.phpt15 public int|(X&Y) $prop2;
48 $test->prop2 = $a;
49 $test->prop2 = $i;
87 $test->prop2 = $c;
124 Cannot assign C to property Test::$prop2 of type (X&Y)|int
/PHP-8.2/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.2/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"
H A Dbug45622b.phpt17 $ao->prop2 = 'foo';
H A Dfixedarray_002.phpt7 public $prop2 = NULL;
/PHP-8.2/Zend/tests/type_declarations/union_types/variance/
H A Dvalid.phpt11 public iterable $prop2;
20 public array|Traversable $prop2;

Completed in 26 milliseconds

12