appendices/migration72/incompatible.xml
8859c8b96cd9e80652813f7bcf561432a5e9f934
...
...
@@ -46,7 +46,7 @@ var_dump(number_format(-0.01)); // now outputs string(1) "0" instead of string(2
46
46

47
47
// array to object
48
48
$arr = [0 => 1];
49
-
$obj = (object)$arr;
49
+
$obj = (object) $arr;
50
50
var_dump(
51
51
$obj,
52
52
$obj->{'0'}, // now accessible
...
...
@@ -84,7 +84,7 @@ $obj = new class {
84
84
$this->{0} = 1;
85
85
}
86
86
};
87
-
$arr = (array)$obj;
87
+
$arr = (array) $obj;
88
88
var_dump(
89
89
$arr,
90
90
$arr[0], // now accessible
...
...
@@ -135,7 +135,7 @@ var_dump(
135
135
count(null), // NULL is not countable
136
136
count(1), // integers are not countable
137
137
count('abc'), // strings are not countable
138
-
count(new stdclass), // objects not implementing the Countable interface are not countable
138
+
count(new stdClass), // objects not implementing the Countable interface are not countable
139
139
count([1,2]) // arrays are countable
140
140
);
141
141
]]>
142
142