We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e76e65 commit 806a2a0Copy full SHA for 806a2a0
1 file changed
Zend/tests/friends/example_002.phpt
@@ -36,9 +36,9 @@ var_dump($alice);
36
$bob = $builder->newWithName("Bob");
37
var_dump($bob);
38
39
-// Creation outside of the builder fails
+// Manipulation outside of the builder fails
40
try {
41
- $unknown = new User();
+ $bob->userId = 2;
42
} catch (Error $e) {
43
echo $e;
44
}
@@ -57,6 +57,6 @@ object(User)#%d (2) {
57
["username"]=>
58
string(3) "Bob"
59
60
-Error: Call to private User::__construct() from global scope in %s:%d
+Error: Cannot modify private(set) property User::$userId from global scope in %s:%d
61
Stack trace:
62
#0 {main}
0 commit comments