]> granicus.if.org Git - php/commitdiff
Improve type error messages when an object is given
authorMáté Kocsis <kocsismate@woohoolabs.com>
Mon, 25 May 2020 17:28:15 +0000 (19:28 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 26 May 2020 17:06:19 +0000 (19:06 +0200)
From now on, we always display the given object's type instead of just reporting "object".
Additionally, make the format of return type errors match the format of argument errors.

Closes GH-5625

134 files changed:
Zend/tests/add_002.phpt
Zend/tests/add_003.phpt
Zend/tests/bug26166.phpt
Zend/tests/bug54305.phpt
Zend/tests/decrement_001.phpt
Zend/tests/decrement_001_64bit.phpt
Zend/tests/exception_018.phpt
Zend/tests/exception_019.phpt
Zend/tests/exception_020.phpt
Zend/tests/exception_021.phpt
Zend/tests/exception_022.phpt
Zend/tests/generators/throw_not_an_exception.phpt
Zend/tests/increment_001.phpt
Zend/tests/ns_071.phpt
Zend/tests/object_types/return_type_in_class.phpt
Zend/tests/object_types/return_type_in_function.phpt
Zend/tests/object_types/return_type_inheritance_in_class.phpt
Zend/tests/object_types/return_type_inheritance_in_interface.phpt
Zend/tests/operator_unsupported_types.phpt
Zend/tests/return_types/001.phpt
Zend/tests/return_types/002.phpt
Zend/tests/return_types/003.phpt
Zend/tests/return_types/004.phpt
Zend/tests/return_types/005.phpt
Zend/tests/return_types/010.phpt
Zend/tests/return_types/013.phpt
Zend/tests/return_types/028.phpt
Zend/tests/return_types/029.phpt
Zend/tests/return_types/030.phpt
Zend/tests/return_types/bug70557.phpt
Zend/tests/return_types/bug71092.phpt
Zend/tests/return_types/internal_functions001.phpt
Zend/tests/return_types/rfc001.phpt
Zend/tests/return_types/rfc003.phpt
Zend/tests/throw/001.phpt
Zend/tests/trait_type_errors.phpt
Zend/tests/type_declarations/iterable_003.phpt
Zend/tests/type_declarations/mixed/validation/mixed_return_strict_error.phpt
Zend/tests/type_declarations/mixed/validation/mixed_return_weak_error.phpt
Zend/tests/type_declarations/scalar_basic.phpt
Zend/tests/type_declarations/scalar_return_basic.phpt
Zend/tests/type_declarations/scalar_return_basic_64bit.phpt
Zend/tests/type_declarations/scalar_strict.phpt
Zend/tests/type_declarations/scalar_strict_64bit.phpt
Zend/tests/type_declarations/scalar_strict_basic.phpt
Zend/tests/type_declarations/static_type_return.phpt
Zend/tests/type_declarations/static_type_trait.phpt
Zend/tests/type_declarations/union_types/type_checking_strict.phpt
Zend/tests/type_declarations/union_types/type_checking_weak.phpt
Zend/tests/typehints/or_null.phpt
Zend/zend_API.c
Zend/zend_execute.c
ext/date/tests/014.phpt
ext/date/tests/DateTimeImmutable_createFromMutable.phpt
ext/date/tests/DateTime_createFromImmutable.phpt
ext/date/tests/bug70245.phpt
ext/date/tests/microtime_error.phpt
ext/date/tests/timezone_offset_get_error.phpt
ext/intl/tests/bug48227.phpt
ext/intl/tests/calendar_equals_error.phpt
ext/libxml/tests/004.phpt
ext/mbstring/tests/mb_substitute_character_variation_strict_types.phpt
ext/mbstring/tests/mb_substitute_character_variation_weak_types.phpt
ext/mysqli/tests/mysqli_fetch_object_oo.phpt
ext/opcache/tests/iterable_type_optimization.phpt
ext/opcache/tests/ssa_bug_003.phpt
ext/pcre/tests/preg_grep_error1.phpt
ext/pcre/tests/preg_match_all_error1.phpt
ext/pcre/tests/preg_match_error1.phpt
ext/pcre/tests/preg_match_error2.phpt
ext/pcre/tests/preg_split_error1.phpt
ext/reflection/tests/ReflectionClass_getMethod_002.phpt
ext/reflection/tests/ReflectionClass_getProperty_002.phpt
ext/reflection/tests/ReflectionReference_errors.phpt
ext/session/tests/session_set_save_handler_iface_002.phpt
ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt
ext/spl/tests/fixedarray_005.phpt
ext/spl/tests/iterator_044.phpt
ext/spl/tests/recursive_tree_iterator_003.phpt
ext/standard/tests/array/array_diff_assoc_variation1.phpt
ext/standard/tests/array/array_diff_assoc_variation2.phpt
ext/standard/tests/array/array_diff_key_variation1.phpt
ext/standard/tests/array/array_diff_key_variation2.phpt
ext/standard/tests/array/array_diff_uassoc_variation1.phpt
ext/standard/tests/array/array_diff_uassoc_variation2.phpt
ext/standard/tests/array/array_diff_ukey_variation1.phpt
ext/standard/tests/array/array_diff_ukey_variation2.phpt
ext/standard/tests/array/array_diff_variation1.phpt
ext/standard/tests/array/array_diff_variation2.phpt
ext/standard/tests/array/array_intersect_assoc_variation1.phpt
ext/standard/tests/array/array_intersect_assoc_variation2.phpt
ext/standard/tests/array/array_intersect_key_variation1.phpt
ext/standard/tests/array/array_intersect_key_variation2.phpt
ext/standard/tests/array/array_intersect_uassoc_variation1.phpt
ext/standard/tests/array/array_intersect_uassoc_variation2.phpt
ext/standard/tests/array/array_intersect_ukey_variation1.phpt
ext/standard/tests/array/array_intersect_ukey_variation2.phpt
ext/standard/tests/array/array_intersect_variation1.phpt
ext/standard/tests/array/array_intersect_variation2.phpt
ext/standard/tests/array/array_key_exists.phpt
ext/standard/tests/array/array_merge_recursive_variation1.phpt
ext/standard/tests/array/array_merge_recursive_variation2.phpt
ext/standard/tests/array/array_merge_variation2.phpt
ext/standard/tests/array/array_search_variation3.phpt
ext/standard/tests/array/array_udiff_assoc_variation1.phpt
ext/standard/tests/array/array_udiff_assoc_variation2.phpt
ext/standard/tests/array/array_udiff_uassoc_variation1.phpt
ext/standard/tests/array/array_udiff_uassoc_variation2.phpt
ext/standard/tests/array/array_udiff_variation1.phpt
ext/standard/tests/array/array_udiff_variation2.phpt
ext/standard/tests/array/array_uintersect_assoc_variation1.phpt
ext/standard/tests/array/array_uintersect_assoc_variation2.phpt
ext/standard/tests/array/array_uintersect_uassoc_variation1.phpt
ext/standard/tests/array/array_uintersect_uassoc_variation2.phpt
ext/standard/tests/array/array_uintersect_variation1.phpt
ext/standard/tests/array/array_uintersect_variation2.phpt
ext/standard/tests/array/bug40191.phpt
ext/standard/tests/array/in_array_variation3.phpt
ext/standard/tests/array/max.phpt
ext/standard/tests/array/min.phpt
ext/standard/tests/math/abs_variation.phpt
ext/standard/tests/math/ceil_variation1.phpt
ext/standard/tests/math/floor_variation1.phpt
ext/standard/tests/math/pow_variation1.phpt
ext/standard/tests/math/pow_variation1_64bit.phpt
ext/standard/tests/math/pow_variation2.phpt
ext/standard/tests/math/round_variation1.phpt
ext/standard/tests/network/bug73594.phpt
ext/standard/tests/password/password_hash_error.phpt
ext/standard/tests/strings/join_variation2.phpt
ext/standard/tests/strings/vprintf_variation2.phpt
sapi/phpdbg/phpdbg_info.c
tests/classes/tostring_001.phpt
tests/classes/tostring_004.phpt

index 131569d856f8ba746e10d4db28e146a06268514a..9077ece0858723cd2f240286ab679c7c94abfa75 100644 (file)
@@ -20,9 +20,9 @@ var_dump($c);
 echo "Done\n";
 ?>
 --EXPECTF--
-Exception: Unsupported operand types: array + object
+Exception: Unsupported operand types: array + stdClass
 
-Fatal error: Uncaught TypeError: Unsupported operand types: array + object in %s:%d
+Fatal error: Uncaught TypeError: Unsupported operand types: array + stdClass in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 69edb7cb1ec0e04c12a06aefc6c98f277b136209..6d27863e893fc6099c06d8f4cac573c048ee3d0a 100644 (file)
@@ -20,9 +20,9 @@ var_dump($c);
 echo "Done\n";
 ?>
 --EXPECTF--
-Exception: Unsupported operand types: object + array
+Exception: Unsupported operand types: stdClass + array
 
-Fatal error: Uncaught TypeError: Unsupported operand types: object + array in %s:%d
+Fatal error: Uncaught TypeError: Unsupported operand types: stdClass + array in %s:%d
 Stack trace:
 #0 {main}
   thrown in %s on line %d
index 4a5a30f5b298f822d9f1d8c463f80a6123c0b1c6..3e5c6daa21d45975b5079f12472c90e555717185 100644 (file)
@@ -64,6 +64,6 @@ try {
 --EXPECT--
 Hello World!
 ===NONE===
-Return value of NoneTest::__toString() must be of type string, none returned
+NoneTest::__toString(): Return value must be of type string, none returned
 ===THROW===
 This is an error!
index a443d480ec569a4c62838a8d4598dfc517145c62..61e351306f78ab878c600279b50ac97b48e04ad4 100644 (file)
@@ -16,4 +16,4 @@ try {
 }
 ?>
 --EXPECT--
-Cannot increment object
+Cannot increment ReflectionMethod
index 5983c4eaa185bcc98b8c1e6eb34704888d77beb3..6382491799563bce8a4b4371a32b578b5513a50e 100644 (file)
@@ -56,7 +56,7 @@ float(1.5)
 NULL
 bool(true)
 bool(false)
-Cannot decrement object
+Cannot decrement stdClass
 object(stdClass)#%d (0) {
 }
 Cannot decrement array
index a96d8cbd0712f5cb5aae2459994a910bddd30f4f..b776bc5dd38964c8d57c728ae7fca274e6807466 100644 (file)
@@ -56,7 +56,7 @@ float(1.5)
 NULL
 bool(true)
 bool(false)
-Cannot decrement object
+Cannot decrement stdClass
 object(stdClass)#1 (0) {
 }
 Cannot decrement array
index 6789cfe9813b1cf24abadbe7c438de3503ffc6b3..b61a788288e2c1367d4e73aca60a57ee88c98a90 100644 (file)
@@ -8,7 +8,7 @@ throw new Hello(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Exception::__construct(): Argument #1 ($message) must be of type string, object given in %s:%d
+Fatal error: Uncaught TypeError: Exception::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
 Stack trace:
 #0 %sexception_018.php(%d): Exception->__construct(Object(stdClass))
 #1 {main}
index 7aa20c2bc7639f0d17cc7cf0e90cf5b0576e7f05..45b87956c9443d13b26225d20275600d3e3a9841 100644 (file)
@@ -7,7 +7,7 @@ throw new Exception(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Exception::__construct(): Argument #1 ($message) must be of type string, object given in %s:%d
+Fatal error: Uncaught TypeError: Exception::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
 Stack trace:
 #0 %sexception_019.php(%d): Exception->__construct(Object(stdClass))
 #1 {main}
index 3135ef3633409a1596e941592b963801184fa823..680a1a0d1af1fa6514edf852e96ad8ca2d116608 100644 (file)
@@ -8,7 +8,7 @@ throw new MyErrorException(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: ErrorException::__construct(): Argument #1 ($message) must be of type string, object given in %s:%d
+Fatal error: Uncaught TypeError: ErrorException::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
 Stack trace:
 #0 %sexception_020.php(%d): ErrorException->__construct(Object(stdClass))
 #1 {main}
index 70ca3caa5734c8b6f08393211922639a38289857..6fa7e49d80a1aced18376c5bdc6f5fad9b13a058 100644 (file)
@@ -8,7 +8,7 @@ throw new Hello(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Error::__construct(): Argument #1 ($message) must be of type string, object given in %s:%d
+Fatal error: Uncaught TypeError: Error::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
 Stack trace:
 #0 %sexception_021.php(%d): Error->__construct(Object(stdClass))
 #1 {main}
index e9b9da87e99fa14da2541ce43e282c9ebceeae9a..604d3314c22cfa8e5527137f641cfa7eaf6660a6 100644 (file)
@@ -7,7 +7,7 @@ throw new Error(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Error::__construct(): Argument #1 ($message) must be of type string, object given in %s:%d
+Fatal error: Uncaught TypeError: Error::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
 Stack trace:
 #0 %sexception_022.php(%d): Error->__construct(Object(stdClass))
 #1 {main}
index d1ff81882f8a48d19ad8e417679e42fac729c644..3b5a590096f4ff897a82c7b9a75af9a8070386ed 100644 (file)
@@ -12,7 +12,7 @@ $gen->throw(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Generator::throw(): Argument #1 ($exception) must be of type Throwable, object given in %s:%d
+Fatal error: Uncaught TypeError: Generator::throw(): Argument #1 ($exception) must be of type Throwable, stdClass given in %s:%d
 Stack trace:
 #0 %s(%d): Generator->throw(Object(stdClass))
 #1 {main}
index a834c5c51d5451f1123467dc553ac51545bf34aa..f34377192677ce4adaf38de275f1f0bd09946af5 100644 (file)
@@ -56,7 +56,7 @@ float(3.5)
 int(1)
 bool(true)
 bool(false)
-Cannot increment object
+Cannot increment stdClass
 object(stdClass)#%d (0) {
 }
 Cannot increment array
index b0126e399fae236dd6d13304900e818c4b393650..18e5a745d56e065970df091be9a32823cf353110 100644 (file)
@@ -18,7 +18,7 @@ new bar(new \stdclass);
 --EXPECTF--
 NULL
 
-Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?array, object given, called in %s:%d
+Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?array, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(%d): foo\bar->__construct(Object(stdClass))
 #1 {main}
index 44e3fbf871eee48df1376a7ec703996019be823d..f2a628829864704c82b4b65b173fd3e86a4978a0 100644 (file)
@@ -18,7 +18,7 @@ $three = new class extends Two {
 };
 $three->a();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be of type object, int returned in %s:%d
+Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
 #0 %s(%d): Two@anonymous->a()
 #1 {main}
index 1c60759bb3aedb12c73e2eab7674455a54fb004d..b94541c8d7cd49e3d1f123fd5097a1c2b742542b 100644 (file)
@@ -8,7 +8,7 @@ function a() : object {
 }
 a();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of a() must be of type object, int returned in %s:4
+Fatal error: Uncaught TypeError: a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
 #0 %s(6): a()
 #1 {main}
index 21dec61e30550d3a8a8028ed0f53f0698ef7afea..564a9d311dadc41447972f960f81ad9d4b71b302 100644 (file)
@@ -18,7 +18,7 @@ $three = new class extends Two {
 };
 $three->a();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be of type object, int returned in %s:%d
+Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
 #0 %s(%d): Two@anonymous->a()
 #1 {main}
index b1af6789113b3c9c41411dfd57e5b984a66780a9..2e112c4cb6f2c176dc6bf598703322ea03f937f2 100644 (file)
@@ -18,7 +18,7 @@ $three = new class implements Two {
 };
 $three->a();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of Two@anonymous::a() must be of type object, int returned in %s:%d
+Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d
 Stack trace:
 #0 %s(%d): Two@anonymous->a()
 #1 {main}
index 9004897d71415db1d330576c8f6ec1c85bc6bb5b..e266affcea22a54f1559768ee257aa4236ca40b0 100644 (file)
@@ -126,13 +126,13 @@ foreach ($illegalValues as $illegalValue) {
 --EXPECT--
 BINARY OP:
 No error for [] + []
-Unsupported operand types: array + object
+Unsupported operand types: array + stdClass
 Unsupported operand types: array + resource
-Unsupported operand types: object + array
-Unsupported operand types: object + object
-Unsupported operand types: object + resource
+Unsupported operand types: stdClass + array
+Unsupported operand types: stdClass + stdClass
+Unsupported operand types: stdClass + resource
 Unsupported operand types: resource + array
-Unsupported operand types: resource + object
+Unsupported operand types: resource + stdClass
 Unsupported operand types: resource + resource
 Unsupported operand types: array + null
 Unsupported operand types: null + array
@@ -149,21 +149,21 @@ Unsupported operand types: string + array
 Unsupported operand types: array + string
 Warning: A non-numeric value encountered
 Unsupported operand types: string + array
-Unsupported operand types: object + null
-Unsupported operand types: null + object
-Unsupported operand types: object + bool
-Unsupported operand types: bool + object
-Unsupported operand types: object + bool
-Unsupported operand types: bool + object
-Unsupported operand types: object + int
-Unsupported operand types: int + object
-Unsupported operand types: object + float
-Unsupported operand types: float + object
-Unsupported operand types: object + string
-Unsupported operand types: string + object
-Unsupported operand types: object + string
+Unsupported operand types: stdClass + null
+Unsupported operand types: null + stdClass
+Unsupported operand types: stdClass + bool
+Unsupported operand types: bool + stdClass
+Unsupported operand types: stdClass + bool
+Unsupported operand types: bool + stdClass
+Unsupported operand types: stdClass + int
+Unsupported operand types: int + stdClass
+Unsupported operand types: stdClass + float
+Unsupported operand types: float + stdClass
+Unsupported operand types: stdClass + string
+Unsupported operand types: string + stdClass
+Unsupported operand types: stdClass + string
 Warning: A non-numeric value encountered
-Unsupported operand types: string + object
+Unsupported operand types: string + stdClass
 Unsupported operand types: resource + null
 Unsupported operand types: null + resource
 Unsupported operand types: resource + bool
@@ -180,13 +180,13 @@ Unsupported operand types: resource + string
 Warning: A non-numeric value encountered
 Unsupported operand types: string + resource
 Unsupported operand types: array - array
-Unsupported operand types: array - object
+Unsupported operand types: array - stdClass
 Unsupported operand types: array - resource
-Unsupported operand types: object - array
-Unsupported operand types: object - object
-Unsupported operand types: object - resource
+Unsupported operand types: stdClass - array
+Unsupported operand types: stdClass - stdClass
+Unsupported operand types: stdClass - resource
 Unsupported operand types: resource - array
-Unsupported operand types: resource - object
+Unsupported operand types: resource - stdClass
 Unsupported operand types: resource - resource
 Unsupported operand types: array - null
 Unsupported operand types: null - array
@@ -203,21 +203,21 @@ Unsupported operand types: string - array
 Unsupported operand types: array - string
 Warning: A non-numeric value encountered
 Unsupported operand types: string - array
-Unsupported operand types: object - null
-Unsupported operand types: null - object
-Unsupported operand types: object - bool
-Unsupported operand types: bool - object
-Unsupported operand types: object - bool
-Unsupported operand types: bool - object
-Unsupported operand types: object - int
-Unsupported operand types: int - object
-Unsupported operand types: object - float
-Unsupported operand types: float - object
-Unsupported operand types: object - string
-Unsupported operand types: string - object
-Unsupported operand types: object - string
+Unsupported operand types: stdClass - null
+Unsupported operand types: null - stdClass
+Unsupported operand types: stdClass - bool
+Unsupported operand types: bool - stdClass
+Unsupported operand types: stdClass - bool
+Unsupported operand types: bool - stdClass
+Unsupported operand types: stdClass - int
+Unsupported operand types: int - stdClass
+Unsupported operand types: stdClass - float
+Unsupported operand types: float - stdClass
+Unsupported operand types: stdClass - string
+Unsupported operand types: string - stdClass
+Unsupported operand types: stdClass - string
 Warning: A non-numeric value encountered
-Unsupported operand types: string - object
+Unsupported operand types: string - stdClass
 Unsupported operand types: resource - null
 Unsupported operand types: null - resource
 Unsupported operand types: resource - bool
@@ -234,13 +234,13 @@ Unsupported operand types: resource - string
 Warning: A non-numeric value encountered
 Unsupported operand types: string - resource
 Unsupported operand types: array * array
-Unsupported operand types: object * array
+Unsupported operand types: stdClass * array
 Unsupported operand types: resource * array
-Unsupported operand types: object * array
-Unsupported operand types: object * object
-Unsupported operand types: object * resource
+Unsupported operand types: stdClass * array
+Unsupported operand types: stdClass * stdClass
+Unsupported operand types: stdClass * resource
 Unsupported operand types: resource * array
-Unsupported operand types: object * resource
+Unsupported operand types: stdClass * resource
 Unsupported operand types: resource * resource
 Unsupported operand types: array * null
 Unsupported operand types: null * array
@@ -257,20 +257,20 @@ Unsupported operand types: string * array
 Unsupported operand types: array * string
 Warning: A non-numeric value encountered
 Unsupported operand types: string * array
-Unsupported operand types: object * null
-Unsupported operand types: object * null
-Unsupported operand types: object * bool
-Unsupported operand types: object * bool
-Unsupported operand types: object * bool
-Unsupported operand types: object * bool
-Unsupported operand types: object * int
-Unsupported operand types: object * int
-Unsupported operand types: object * float
-Unsupported operand types: object * float
-Unsupported operand types: object * string
-Unsupported operand types: object * string
-Unsupported operand types: object * string
-Unsupported operand types: object * string
+Unsupported operand types: stdClass * null
+Unsupported operand types: stdClass * null
+Unsupported operand types: stdClass * bool
+Unsupported operand types: stdClass * bool
+Unsupported operand types: stdClass * bool
+Unsupported operand types: stdClass * bool
+Unsupported operand types: stdClass * int
+Unsupported operand types: stdClass * int
+Unsupported operand types: stdClass * float
+Unsupported operand types: stdClass * float
+Unsupported operand types: stdClass * string
+Unsupported operand types: stdClass * string
+Unsupported operand types: stdClass * string
+Unsupported operand types: stdClass * string
 Unsupported operand types: resource * null
 Unsupported operand types: resource * null
 Unsupported operand types: resource * bool
@@ -286,13 +286,13 @@ Unsupported operand types: resource * string
 Unsupported operand types: resource * string
 Unsupported operand types: resource * string
 Unsupported operand types: array / array
-Unsupported operand types: array / object
+Unsupported operand types: array / stdClass
 Unsupported operand types: array / resource
-Unsupported operand types: object / array
-Unsupported operand types: object / object
-Unsupported operand types: object / resource
+Unsupported operand types: stdClass / array
+Unsupported operand types: stdClass / stdClass
+Unsupported operand types: stdClass / resource
 Unsupported operand types: resource / array
-Unsupported operand types: resource / object
+Unsupported operand types: resource / stdClass
 Unsupported operand types: resource / resource
 Unsupported operand types: array / null
 Unsupported operand types: null / array
@@ -309,21 +309,21 @@ Unsupported operand types: string / array
 Unsupported operand types: array / string
 Warning: A non-numeric value encountered
 Unsupported operand types: string / array
-Unsupported operand types: object / null
-Unsupported operand types: null / object
-Unsupported operand types: object / bool
-Unsupported operand types: bool / object
-Unsupported operand types: object / bool
-Unsupported operand types: bool / object
-Unsupported operand types: object / int
-Unsupported operand types: int / object
-Unsupported operand types: object / float
-Unsupported operand types: float / object
-Unsupported operand types: object / string
-Unsupported operand types: string / object
-Unsupported operand types: object / string
+Unsupported operand types: stdClass / null
+Unsupported operand types: null / stdClass
+Unsupported operand types: stdClass / bool
+Unsupported operand types: bool / stdClass
+Unsupported operand types: stdClass / bool
+Unsupported operand types: bool / stdClass
+Unsupported operand types: stdClass / int
+Unsupported operand types: int / stdClass
+Unsupported operand types: stdClass / float
+Unsupported operand types: float / stdClass
+Unsupported operand types: stdClass / string
+Unsupported operand types: string / stdClass
+Unsupported operand types: stdClass / string
 Warning: A non-numeric value encountered
-Unsupported operand types: string / object
+Unsupported operand types: string / stdClass
 Unsupported operand types: resource / null
 Unsupported operand types: null / resource
 Unsupported operand types: resource / bool
@@ -340,13 +340,13 @@ Unsupported operand types: resource / string
 Warning: A non-numeric value encountered
 Unsupported operand types: string / resource
 Unsupported operand types: array % array
-Unsupported operand types: array % object
+Unsupported operand types: array % stdClass
 Unsupported operand types: array % resource
-Unsupported operand types: object % array
-Unsupported operand types: object % object
-Unsupported operand types: object % resource
+Unsupported operand types: stdClass % array
+Unsupported operand types: stdClass % stdClass
+Unsupported operand types: stdClass % resource
 Unsupported operand types: resource % array
-Unsupported operand types: resource % object
+Unsupported operand types: resource % stdClass
 Unsupported operand types: resource % resource
 Unsupported operand types: array % null
 Unsupported operand types: null % array
@@ -363,21 +363,21 @@ Unsupported operand types: string % array
 Unsupported operand types: array % string
 Warning: A non-numeric value encountered
 Unsupported operand types: string % array
-Unsupported operand types: object % null
-Unsupported operand types: null % object
-Unsupported operand types: object % bool
-Unsupported operand types: bool % object
-Unsupported operand types: object % bool
-Unsupported operand types: bool % object
-Unsupported operand types: object % int
-Unsupported operand types: int % object
-Unsupported operand types: object % float
-Unsupported operand types: float % object
-Unsupported operand types: object % string
-Unsupported operand types: string % object
-Unsupported operand types: object % string
+Unsupported operand types: stdClass % null
+Unsupported operand types: null % stdClass
+Unsupported operand types: stdClass % bool
+Unsupported operand types: bool % stdClass
+Unsupported operand types: stdClass % bool
+Unsupported operand types: bool % stdClass
+Unsupported operand types: stdClass % int
+Unsupported operand types: int % stdClass
+Unsupported operand types: stdClass % float
+Unsupported operand types: float % stdClass
+Unsupported operand types: stdClass % string
+Unsupported operand types: string % stdClass
+Unsupported operand types: stdClass % string
 Warning: A non-numeric value encountered
-Unsupported operand types: string % object
+Unsupported operand types: string % stdClass
 Unsupported operand types: resource % null
 Unsupported operand types: null % resource
 Unsupported operand types: resource % bool
@@ -394,13 +394,13 @@ Unsupported operand types: resource % string
 Warning: A non-numeric value encountered
 Unsupported operand types: string % resource
 Unsupported operand types: array ** array
-Unsupported operand types: array ** object
+Unsupported operand types: array ** stdClass
 Unsupported operand types: array ** resource
-Unsupported operand types: object ** array
-Unsupported operand types: object ** object
-Unsupported operand types: object ** resource
+Unsupported operand types: stdClass ** array
+Unsupported operand types: stdClass ** stdClass
+Unsupported operand types: stdClass ** resource
 Unsupported operand types: resource ** array
-Unsupported operand types: resource ** object
+Unsupported operand types: resource ** stdClass
 Unsupported operand types: resource ** resource
 Unsupported operand types: array ** null
 Unsupported operand types: null ** array
@@ -417,21 +417,21 @@ Unsupported operand types: string ** array
 Unsupported operand types: array ** string
 Warning: A non-numeric value encountered
 Unsupported operand types: string ** array
-Unsupported operand types: object ** null
-Unsupported operand types: null ** object
-Unsupported operand types: object ** bool
-Unsupported operand types: bool ** object
-Unsupported operand types: object ** bool
-Unsupported operand types: bool ** object
-Unsupported operand types: object ** int
-Unsupported operand types: int ** object
-Unsupported operand types: object ** float
-Unsupported operand types: float ** object
-Unsupported operand types: object ** string
-Unsupported operand types: string ** object
-Unsupported operand types: object ** string
+Unsupported operand types: stdClass ** null
+Unsupported operand types: null ** stdClass
+Unsupported operand types: stdClass ** bool
+Unsupported operand types: bool ** stdClass
+Unsupported operand types: stdClass ** bool
+Unsupported operand types: bool ** stdClass
+Unsupported operand types: stdClass ** int
+Unsupported operand types: int ** stdClass
+Unsupported operand types: stdClass ** float
+Unsupported operand types: float ** stdClass
+Unsupported operand types: stdClass ** string
+Unsupported operand types: string ** stdClass
+Unsupported operand types: stdClass ** string
 Warning: A non-numeric value encountered
-Unsupported operand types: string ** object
+Unsupported operand types: string ** stdClass
 Unsupported operand types: resource ** null
 Unsupported operand types: null ** resource
 Unsupported operand types: resource ** bool
@@ -448,13 +448,13 @@ Unsupported operand types: resource ** string
 Warning: A non-numeric value encountered
 Unsupported operand types: string ** resource
 Unsupported operand types: array << array
-Unsupported operand types: array << object
+Unsupported operand types: array << stdClass
 Unsupported operand types: array << resource
-Unsupported operand types: object << array
-Unsupported operand types: object << object
-Unsupported operand types: object << resource
+Unsupported operand types: stdClass << array
+Unsupported operand types: stdClass << stdClass
+Unsupported operand types: stdClass << resource
 Unsupported operand types: resource << array
-Unsupported operand types: resource << object
+Unsupported operand types: resource << stdClass
 Unsupported operand types: resource << resource
 Unsupported operand types: array << null
 Unsupported operand types: null << array
@@ -471,21 +471,21 @@ Unsupported operand types: string << array
 Unsupported operand types: array << string
 Warning: A non-numeric value encountered
 Unsupported operand types: string << array
-Unsupported operand types: object << null
-Unsupported operand types: null << object
-Unsupported operand types: object << bool
-Unsupported operand types: bool << object
-Unsupported operand types: object << bool
-Unsupported operand types: bool << object
-Unsupported operand types: object << int
-Unsupported operand types: int << object
-Unsupported operand types: object << float
-Unsupported operand types: float << object
-Unsupported operand types: object << string
-Unsupported operand types: string << object
-Unsupported operand types: object << string
+Unsupported operand types: stdClass << null
+Unsupported operand types: null << stdClass
+Unsupported operand types: stdClass << bool
+Unsupported operand types: bool << stdClass
+Unsupported operand types: stdClass << bool
+Unsupported operand types: bool << stdClass
+Unsupported operand types: stdClass << int
+Unsupported operand types: int << stdClass
+Unsupported operand types: stdClass << float
+Unsupported operand types: float << stdClass
+Unsupported operand types: stdClass << string
+Unsupported operand types: string << stdClass
+Unsupported operand types: stdClass << string
 Warning: A non-numeric value encountered
-Unsupported operand types: string << object
+Unsupported operand types: string << stdClass
 Unsupported operand types: resource << null
 Unsupported operand types: null << resource
 Unsupported operand types: resource << bool
@@ -502,13 +502,13 @@ Unsupported operand types: resource << string
 Warning: A non-numeric value encountered
 Unsupported operand types: string << resource
 Unsupported operand types: array >> array
-Unsupported operand types: array >> object
+Unsupported operand types: array >> stdClass
 Unsupported operand types: array >> resource
-Unsupported operand types: object >> array
-Unsupported operand types: object >> object
-Unsupported operand types: object >> resource
+Unsupported operand types: stdClass >> array
+Unsupported operand types: stdClass >> stdClass
+Unsupported operand types: stdClass >> resource
 Unsupported operand types: resource >> array
-Unsupported operand types: resource >> object
+Unsupported operand types: resource >> stdClass
 Unsupported operand types: resource >> resource
 Unsupported operand types: array >> null
 Unsupported operand types: null >> array
@@ -525,21 +525,21 @@ Unsupported operand types: string >> array
 Unsupported operand types: array >> string
 Warning: A non-numeric value encountered
 Unsupported operand types: string >> array
-Unsupported operand types: object >> null
-Unsupported operand types: null >> object
-Unsupported operand types: object >> bool
-Unsupported operand types: bool >> object
-Unsupported operand types: object >> bool
-Unsupported operand types: bool >> object
-Unsupported operand types: object >> int
-Unsupported operand types: int >> object
-Unsupported operand types: object >> float
-Unsupported operand types: float >> object
-Unsupported operand types: object >> string
-Unsupported operand types: string >> object
-Unsupported operand types: object >> string
+Unsupported operand types: stdClass >> null
+Unsupported operand types: null >> stdClass
+Unsupported operand types: stdClass >> bool
+Unsupported operand types: bool >> stdClass
+Unsupported operand types: stdClass >> bool
+Unsupported operand types: bool >> stdClass
+Unsupported operand types: stdClass >> int
+Unsupported operand types: int >> stdClass
+Unsupported operand types: stdClass >> float
+Unsupported operand types: float >> stdClass
+Unsupported operand types: stdClass >> string
+Unsupported operand types: string >> stdClass
+Unsupported operand types: stdClass >> string
 Warning: A non-numeric value encountered
-Unsupported operand types: string >> object
+Unsupported operand types: string >> stdClass
 Unsupported operand types: resource >> null
 Unsupported operand types: null >> resource
 Unsupported operand types: resource >> bool
@@ -556,13 +556,13 @@ Unsupported operand types: resource >> string
 Warning: A non-numeric value encountered
 Unsupported operand types: string >> resource
 Unsupported operand types: array & array
-Unsupported operand types: object & array
+Unsupported operand types: stdClass & array
 Unsupported operand types: resource & array
-Unsupported operand types: object & array
-Unsupported operand types: object & object
-Unsupported operand types: object & resource
+Unsupported operand types: stdClass & array
+Unsupported operand types: stdClass & stdClass
+Unsupported operand types: stdClass & resource
 Unsupported operand types: resource & array
-Unsupported operand types: object & resource
+Unsupported operand types: stdClass & resource
 Unsupported operand types: resource & resource
 Unsupported operand types: array & null
 Unsupported operand types: null & array
@@ -579,20 +579,20 @@ Unsupported operand types: string & array
 Unsupported operand types: array & string
 Warning: A non-numeric value encountered
 Unsupported operand types: string & array
-Unsupported operand types: object & null
-Unsupported operand types: object & null
-Unsupported operand types: object & bool
-Unsupported operand types: object & bool
-Unsupported operand types: object & bool
-Unsupported operand types: object & bool
-Unsupported operand types: object & int
-Unsupported operand types: object & int
-Unsupported operand types: object & float
-Unsupported operand types: object & float
-Unsupported operand types: object & string
-Unsupported operand types: object & string
-Unsupported operand types: object & string
-Unsupported operand types: object & string
+Unsupported operand types: stdClass & null
+Unsupported operand types: stdClass & null
+Unsupported operand types: stdClass & bool
+Unsupported operand types: stdClass & bool
+Unsupported operand types: stdClass & bool
+Unsupported operand types: stdClass & bool
+Unsupported operand types: stdClass & int
+Unsupported operand types: stdClass & int
+Unsupported operand types: stdClass & float
+Unsupported operand types: stdClass & float
+Unsupported operand types: stdClass & string
+Unsupported operand types: stdClass & string
+Unsupported operand types: stdClass & string
+Unsupported operand types: stdClass & string
 Unsupported operand types: resource & null
 Unsupported operand types: resource & null
 Unsupported operand types: resource & bool
@@ -608,13 +608,13 @@ Unsupported operand types: resource & string
 Unsupported operand types: resource & string
 Unsupported operand types: resource & string
 Unsupported operand types: array | array
-Unsupported operand types: object | array
+Unsupported operand types: stdClass | array
 Unsupported operand types: resource | array
-Unsupported operand types: object | array
-Unsupported operand types: object | object
-Unsupported operand types: object | resource
+Unsupported operand types: stdClass | array
+Unsupported operand types: stdClass | stdClass
+Unsupported operand types: stdClass | resource
 Unsupported operand types: resource | array
-Unsupported operand types: object | resource
+Unsupported operand types: stdClass | resource
 Unsupported operand types: resource | resource
 Unsupported operand types: array | null
 Unsupported operand types: null | array
@@ -631,20 +631,20 @@ Unsupported operand types: string | array
 Unsupported operand types: array | string
 Warning: A non-numeric value encountered
 Unsupported operand types: string | array
-Unsupported operand types: object | null
-Unsupported operand types: object | null
-Unsupported operand types: object | bool
-Unsupported operand types: object | bool
-Unsupported operand types: object | bool
-Unsupported operand types: object | bool
-Unsupported operand types: object | int
-Unsupported operand types: object | int
-Unsupported operand types: object | float
-Unsupported operand types: object | float
-Unsupported operand types: object | string
-Unsupported operand types: object | string
-Unsupported operand types: object | string
-Unsupported operand types: object | string
+Unsupported operand types: stdClass | null
+Unsupported operand types: stdClass | null
+Unsupported operand types: stdClass | bool
+Unsupported operand types: stdClass | bool
+Unsupported operand types: stdClass | bool
+Unsupported operand types: stdClass | bool
+Unsupported operand types: stdClass | int
+Unsupported operand types: stdClass | int
+Unsupported operand types: stdClass | float
+Unsupported operand types: stdClass | float
+Unsupported operand types: stdClass | string
+Unsupported operand types: stdClass | string
+Unsupported operand types: stdClass | string
+Unsupported operand types: stdClass | string
 Unsupported operand types: resource | null
 Unsupported operand types: resource | null
 Unsupported operand types: resource | bool
@@ -660,13 +660,13 @@ Unsupported operand types: resource | string
 Unsupported operand types: resource | string
 Unsupported operand types: resource | string
 Unsupported operand types: array ^ array
-Unsupported operand types: object ^ array
+Unsupported operand types: stdClass ^ array
 Unsupported operand types: resource ^ array
-Unsupported operand types: object ^ array
-Unsupported operand types: object ^ object
-Unsupported operand types: object ^ resource
+Unsupported operand types: stdClass ^ array
+Unsupported operand types: stdClass ^ stdClass
+Unsupported operand types: stdClass ^ resource
 Unsupported operand types: resource ^ array
-Unsupported operand types: object ^ resource
+Unsupported operand types: stdClass ^ resource
 Unsupported operand types: resource ^ resource
 Unsupported operand types: array ^ null
 Unsupported operand types: null ^ array
@@ -683,20 +683,20 @@ Unsupported operand types: string ^ array
 Unsupported operand types: array ^ string
 Warning: A non-numeric value encountered
 Unsupported operand types: string ^ array
-Unsupported operand types: object ^ null
-Unsupported operand types: object ^ null
-Unsupported operand types: object ^ bool
-Unsupported operand types: object ^ bool
-Unsupported operand types: object ^ bool
-Unsupported operand types: object ^ bool
-Unsupported operand types: object ^ int
-Unsupported operand types: object ^ int
-Unsupported operand types: object ^ float
-Unsupported operand types: object ^ float
-Unsupported operand types: object ^ string
-Unsupported operand types: object ^ string
-Unsupported operand types: object ^ string
-Unsupported operand types: object ^ string
+Unsupported operand types: stdClass ^ null
+Unsupported operand types: stdClass ^ null
+Unsupported operand types: stdClass ^ bool
+Unsupported operand types: stdClass ^ bool
+Unsupported operand types: stdClass ^ bool
+Unsupported operand types: stdClass ^ bool
+Unsupported operand types: stdClass ^ int
+Unsupported operand types: stdClass ^ int
+Unsupported operand types: stdClass ^ float
+Unsupported operand types: stdClass ^ float
+Unsupported operand types: stdClass ^ string
+Unsupported operand types: stdClass ^ string
+Unsupported operand types: stdClass ^ string
+Unsupported operand types: stdClass ^ string
 Unsupported operand types: resource ^ null
 Unsupported operand types: resource ^ null
 Unsupported operand types: resource ^ bool
@@ -837,13 +837,13 @@ No error for "foo" . STDOUT
 
 ASSIGN OP:
 No error for [] += []
-Unsupported operand types: array + object
+Unsupported operand types: array + stdClass
 Unsupported operand types: array + resource
-Unsupported operand types: object + array
-Unsupported operand types: object + object
-Unsupported operand types: object + resource
+Unsupported operand types: stdClass + array
+Unsupported operand types: stdClass + stdClass
+Unsupported operand types: stdClass + resource
 Unsupported operand types: resource + array
-Unsupported operand types: resource + object
+Unsupported operand types: resource + stdClass
 Unsupported operand types: resource + resource
 Unsupported operand types: array + null
 Unsupported operand types: null + array
@@ -860,21 +860,21 @@ Unsupported operand types: string + array
 Unsupported operand types: array + string
 Warning: A non-numeric value encountered
 Unsupported operand types: string + array
-Unsupported operand types: object + null
-Unsupported operand types: null + object
-Unsupported operand types: object + bool
-Unsupported operand types: bool + object
-Unsupported operand types: object + bool
-Unsupported operand types: bool + object
-Unsupported operand types: object + int
-Unsupported operand types: int + object
-Unsupported operand types: object + float
-Unsupported operand types: float + object
-Unsupported operand types: object + string
-Unsupported operand types: string + object
-Unsupported operand types: object + string
+Unsupported operand types: stdClass + null
+Unsupported operand types: null + stdClass
+Unsupported operand types: stdClass + bool
+Unsupported operand types: bool + stdClass
+Unsupported operand types: stdClass + bool
+Unsupported operand types: bool + stdClass
+Unsupported operand types: stdClass + int
+Unsupported operand types: int + stdClass
+Unsupported operand types: stdClass + float
+Unsupported operand types: float + stdClass
+Unsupported operand types: stdClass + string
+Unsupported operand types: string + stdClass
+Unsupported operand types: stdClass + string
 Warning: A non-numeric value encountered
-Unsupported operand types: string + object
+Unsupported operand types: string + stdClass
 Unsupported operand types: resource + null
 Unsupported operand types: null + resource
 Unsupported operand types: resource + bool
@@ -891,13 +891,13 @@ Unsupported operand types: resource + string
 Warning: A non-numeric value encountered
 Unsupported operand types: string + resource
 Unsupported operand types: array - array
-Unsupported operand types: array - object
+Unsupported operand types: array - stdClass
 Unsupported operand types: array - resource
-Unsupported operand types: object - array
-Unsupported operand types: object - object
-Unsupported operand types: object - resource
+Unsupported operand types: stdClass - array
+Unsupported operand types: stdClass - stdClass
+Unsupported operand types: stdClass - resource
 Unsupported operand types: resource - array
-Unsupported operand types: resource - object
+Unsupported operand types: resource - stdClass
 Unsupported operand types: resource - resource
 Unsupported operand types: array - null
 Unsupported operand types: null - array
@@ -914,21 +914,21 @@ Unsupported operand types: string - array
 Unsupported operand types: array - string
 Warning: A non-numeric value encountered
 Unsupported operand types: string - array
-Unsupported operand types: object - null
-Unsupported operand types: null - object
-Unsupported operand types: object - bool
-Unsupported operand types: bool - object
-Unsupported operand types: object - bool
-Unsupported operand types: bool - object
-Unsupported operand types: object - int
-Unsupported operand types: int - object
-Unsupported operand types: object - float
-Unsupported operand types: float - object
-Unsupported operand types: object - string
-Unsupported operand types: string - object
-Unsupported operand types: object - string
+Unsupported operand types: stdClass - null
+Unsupported operand types: null - stdClass
+Unsupported operand types: stdClass - bool
+Unsupported operand types: bool - stdClass
+Unsupported operand types: stdClass - bool
+Unsupported operand types: bool - stdClass
+Unsupported operand types: stdClass - int
+Unsupported operand types: int - stdClass
+Unsupported operand types: stdClass - float
+Unsupported operand types: float - stdClass
+Unsupported operand types: stdClass - string
+Unsupported operand types: string - stdClass
+Unsupported operand types: stdClass - string
 Warning: A non-numeric value encountered
-Unsupported operand types: string - object
+Unsupported operand types: string - stdClass
 Unsupported operand types: resource - null
 Unsupported operand types: null - resource
 Unsupported operand types: resource - bool
@@ -945,13 +945,13 @@ Unsupported operand types: resource - string
 Warning: A non-numeric value encountered
 Unsupported operand types: string - resource
 Unsupported operand types: array * array
-Unsupported operand types: array * object
+Unsupported operand types: array * stdClass
 Unsupported operand types: array * resource
-Unsupported operand types: object * array
-Unsupported operand types: object * object
-Unsupported operand types: object * resource
+Unsupported operand types: stdClass * array
+Unsupported operand types: stdClass * stdClass
+Unsupported operand types: stdClass * resource
 Unsupported operand types: resource * array
-Unsupported operand types: resource * object
+Unsupported operand types: resource * stdClass
 Unsupported operand types: resource * resource
 Unsupported operand types: array * null
 Unsupported operand types: null * array
@@ -968,21 +968,21 @@ Unsupported operand types: string * array
 Unsupported operand types: array * string
 Warning: A non-numeric value encountered
 Unsupported operand types: string * array
-Unsupported operand types: object * null
-Unsupported operand types: null * object
-Unsupported operand types: object * bool
-Unsupported operand types: bool * object
-Unsupported operand types: object * bool
-Unsupported operand types: bool * object
-Unsupported operand types: object * int
-Unsupported operand types: int * object
-Unsupported operand types: object * float
-Unsupported operand types: float * object
-Unsupported operand types: object * string
-Unsupported operand types: string * object
-Unsupported operand types: object * string
+Unsupported operand types: stdClass * null
+Unsupported operand types: null * stdClass
+Unsupported operand types: stdClass * bool
+Unsupported operand types: bool * stdClass
+Unsupported operand types: stdClass * bool
+Unsupported operand types: bool * stdClass
+Unsupported operand types: stdClass * int
+Unsupported operand types: int * stdClass
+Unsupported operand types: stdClass * float
+Unsupported operand types: float * stdClass
+Unsupported operand types: stdClass * string
+Unsupported operand types: string * stdClass
+Unsupported operand types: stdClass * string
 Warning: A non-numeric value encountered
-Unsupported operand types: string * object
+Unsupported operand types: string * stdClass
 Unsupported operand types: resource * null
 Unsupported operand types: null * resource
 Unsupported operand types: resource * bool
@@ -999,13 +999,13 @@ Unsupported operand types: resource * string
 Warning: A non-numeric value encountered
 Unsupported operand types: string * resource
 Unsupported operand types: array / array
-Unsupported operand types: array / object
+Unsupported operand types: array / stdClass
 Unsupported operand types: array / resource
-Unsupported operand types: object / array
-Unsupported operand types: object / object
-Unsupported operand types: object / resource
+Unsupported operand types: stdClass / array
+Unsupported operand types: stdClass / stdClass
+Unsupported operand types: stdClass / resource
 Unsupported operand types: resource / array
-Unsupported operand types: resource / object
+Unsupported operand types: resource / stdClass
 Unsupported operand types: resource / resource
 Unsupported operand types: array / null
 Unsupported operand types: null / array
@@ -1022,21 +1022,21 @@ Unsupported operand types: string / array
 Unsupported operand types: array / string
 Warning: A non-numeric value encountered
 Unsupported operand types: string / array
-Unsupported operand types: object / null
-Unsupported operand types: null / object
-Unsupported operand types: object / bool
-Unsupported operand types: bool / object
-Unsupported operand types: object / bool
-Unsupported operand types: bool / object
-Unsupported operand types: object / int
-Unsupported operand types: int / object
-Unsupported operand types: object / float
-Unsupported operand types: float / object
-Unsupported operand types: object / string
-Unsupported operand types: string / object
-Unsupported operand types: object / string
+Unsupported operand types: stdClass / null
+Unsupported operand types: null / stdClass
+Unsupported operand types: stdClass / bool
+Unsupported operand types: bool / stdClass
+Unsupported operand types: stdClass / bool
+Unsupported operand types: bool / stdClass
+Unsupported operand types: stdClass / int
+Unsupported operand types: int / stdClass
+Unsupported operand types: stdClass / float
+Unsupported operand types: float / stdClass
+Unsupported operand types: stdClass / string
+Unsupported operand types: string / stdClass
+Unsupported operand types: stdClass / string
 Warning: A non-numeric value encountered
-Unsupported operand types: string / object
+Unsupported operand types: string / stdClass
 Unsupported operand types: resource / null
 Unsupported operand types: null / resource
 Unsupported operand types: resource / bool
@@ -1053,13 +1053,13 @@ Unsupported operand types: resource / string
 Warning: A non-numeric value encountered
 Unsupported operand types: string / resource
 Unsupported operand types: array % array
-Unsupported operand types: array % object
+Unsupported operand types: array % stdClass
 Unsupported operand types: array % resource
-Unsupported operand types: object % array
-Unsupported operand types: object % object
-Unsupported operand types: object % resource
+Unsupported operand types: stdClass % array
+Unsupported operand types: stdClass % stdClass
+Unsupported operand types: stdClass % resource
 Unsupported operand types: resource % array
-Unsupported operand types: resource % object
+Unsupported operand types: resource % stdClass
 Unsupported operand types: resource % resource
 Unsupported operand types: array % null
 Unsupported operand types: null % array
@@ -1076,21 +1076,21 @@ Unsupported operand types: string % array
 Unsupported operand types: array % string
 Warning: A non-numeric value encountered
 Unsupported operand types: string % array
-Unsupported operand types: object % null
-Unsupported operand types: null % object
-Unsupported operand types: object % bool
-Unsupported operand types: bool % object
-Unsupported operand types: object % bool
-Unsupported operand types: bool % object
-Unsupported operand types: object % int
-Unsupported operand types: int % object
-Unsupported operand types: object % float
-Unsupported operand types: float % object
-Unsupported operand types: object % string
-Unsupported operand types: string % object
-Unsupported operand types: object % string
+Unsupported operand types: stdClass % null
+Unsupported operand types: null % stdClass
+Unsupported operand types: stdClass % bool
+Unsupported operand types: bool % stdClass
+Unsupported operand types: stdClass % bool
+Unsupported operand types: bool % stdClass
+Unsupported operand types: stdClass % int
+Unsupported operand types: int % stdClass
+Unsupported operand types: stdClass % float
+Unsupported operand types: float % stdClass
+Unsupported operand types: stdClass % string
+Unsupported operand types: string % stdClass
+Unsupported operand types: stdClass % string
 Warning: A non-numeric value encountered
-Unsupported operand types: string % object
+Unsupported operand types: string % stdClass
 Unsupported operand types: resource % null
 Unsupported operand types: null % resource
 Unsupported operand types: resource % bool
@@ -1107,13 +1107,13 @@ Unsupported operand types: resource % string
 Warning: A non-numeric value encountered
 Unsupported operand types: string % resource
 Unsupported operand types: array ** array
-Unsupported operand types: array ** object
+Unsupported operand types: array ** stdClass
 Unsupported operand types: array ** resource
-Unsupported operand types: object ** array
-Unsupported operand types: object ** object
-Unsupported operand types: object ** resource
+Unsupported operand types: stdClass ** array
+Unsupported operand types: stdClass ** stdClass
+Unsupported operand types: stdClass ** resource
 Unsupported operand types: resource ** array
-Unsupported operand types: resource ** object
+Unsupported operand types: resource ** stdClass
 Unsupported operand types: resource ** resource
 Unsupported operand types: array ** null
 Unsupported operand types: null ** array
@@ -1130,21 +1130,21 @@ Unsupported operand types: string ** array
 Unsupported operand types: array ** string
 Warning: A non-numeric value encountered
 Unsupported operand types: string ** array
-Unsupported operand types: object ** null
-Unsupported operand types: null ** object
-Unsupported operand types: object ** bool
-Unsupported operand types: bool ** object
-Unsupported operand types: object ** bool
-Unsupported operand types: bool ** object
-Unsupported operand types: object ** int
-Unsupported operand types: int ** object
-Unsupported operand types: object ** float
-Unsupported operand types: float ** object
-Unsupported operand types: object ** string
-Unsupported operand types: string ** object
-Unsupported operand types: object ** string
+Unsupported operand types: stdClass ** null
+Unsupported operand types: null ** stdClass
+Unsupported operand types: stdClass ** bool
+Unsupported operand types: bool ** stdClass
+Unsupported operand types: stdClass ** bool
+Unsupported operand types: bool ** stdClass
+Unsupported operand types: stdClass ** int
+Unsupported operand types: int ** stdClass
+Unsupported operand types: stdClass ** float
+Unsupported operand types: float ** stdClass
+Unsupported operand types: stdClass ** string
+Unsupported operand types: string ** stdClass
+Unsupported operand types: stdClass ** string
 Warning: A non-numeric value encountered
-Unsupported operand types: string ** object
+Unsupported operand types: string ** stdClass
 Unsupported operand types: resource ** null
 Unsupported operand types: null ** resource
 Unsupported operand types: resource ** bool
@@ -1161,13 +1161,13 @@ Unsupported operand types: resource ** string
 Warning: A non-numeric value encountered
 Unsupported operand types: string ** resource
 Unsupported operand types: array << array
-Unsupported operand types: array << object
+Unsupported operand types: array << stdClass
 Unsupported operand types: array << resource
-Unsupported operand types: object << array
-Unsupported operand types: object << object
-Unsupported operand types: object << resource
+Unsupported operand types: stdClass << array
+Unsupported operand types: stdClass << stdClass
+Unsupported operand types: stdClass << resource
 Unsupported operand types: resource << array
-Unsupported operand types: resource << object
+Unsupported operand types: resource << stdClass
 Unsupported operand types: resource << resource
 Unsupported operand types: array << null
 Unsupported operand types: null << array
@@ -1184,21 +1184,21 @@ Unsupported operand types: string << array
 Unsupported operand types: array << string
 Warning: A non-numeric value encountered
 Unsupported operand types: string << array
-Unsupported operand types: object << null
-Unsupported operand types: null << object
-Unsupported operand types: object << bool
-Unsupported operand types: bool << object
-Unsupported operand types: object << bool
-Unsupported operand types: bool << object
-Unsupported operand types: object << int
-Unsupported operand types: int << object
-Unsupported operand types: object << float
-Unsupported operand types: float << object
-Unsupported operand types: object << string
-Unsupported operand types: string << object
-Unsupported operand types: object << string
+Unsupported operand types: stdClass << null
+Unsupported operand types: null << stdClass
+Unsupported operand types: stdClass << bool
+Unsupported operand types: bool << stdClass
+Unsupported operand types: stdClass << bool
+Unsupported operand types: bool << stdClass
+Unsupported operand types: stdClass << int
+Unsupported operand types: int << stdClass
+Unsupported operand types: stdClass << float
+Unsupported operand types: float << stdClass
+Unsupported operand types: stdClass << string
+Unsupported operand types: string << stdClass
+Unsupported operand types: stdClass << string
 Warning: A non-numeric value encountered
-Unsupported operand types: string << object
+Unsupported operand types: string << stdClass
 Unsupported operand types: resource << null
 Unsupported operand types: null << resource
 Unsupported operand types: resource << bool
@@ -1215,13 +1215,13 @@ Unsupported operand types: resource << string
 Warning: A non-numeric value encountered
 Unsupported operand types: string << resource
 Unsupported operand types: array >> array
-Unsupported operand types: array >> object
+Unsupported operand types: array >> stdClass
 Unsupported operand types: array >> resource
-Unsupported operand types: object >> array
-Unsupported operand types: object >> object
-Unsupported operand types: object >> resource
+Unsupported operand types: stdClass >> array
+Unsupported operand types: stdClass >> stdClass
+Unsupported operand types: stdClass >> resource
 Unsupported operand types: resource >> array
-Unsupported operand types: resource >> object
+Unsupported operand types: resource >> stdClass
 Unsupported operand types: resource >> resource
 Unsupported operand types: array >> null
 Unsupported operand types: null >> array
@@ -1238,21 +1238,21 @@ Unsupported operand types: string >> array
 Unsupported operand types: array >> string
 Warning: A non-numeric value encountered
 Unsupported operand types: string >> array
-Unsupported operand types: object >> null
-Unsupported operand types: null >> object
-Unsupported operand types: object >> bool
-Unsupported operand types: bool >> object
-Unsupported operand types: object >> bool
-Unsupported operand types: bool >> object
-Unsupported operand types: object >> int
-Unsupported operand types: int >> object
-Unsupported operand types: object >> float
-Unsupported operand types: float >> object
-Unsupported operand types: object >> string
-Unsupported operand types: string >> object
-Unsupported operand types: object >> string
+Unsupported operand types: stdClass >> null
+Unsupported operand types: null >> stdClass
+Unsupported operand types: stdClass >> bool
+Unsupported operand types: bool >> stdClass
+Unsupported operand types: stdClass >> bool
+Unsupported operand types: bool >> stdClass
+Unsupported operand types: stdClass >> int
+Unsupported operand types: int >> stdClass
+Unsupported operand types: stdClass >> float
+Unsupported operand types: float >> stdClass
+Unsupported operand types: stdClass >> string
+Unsupported operand types: string >> stdClass
+Unsupported operand types: stdClass >> string
 Warning: A non-numeric value encountered
-Unsupported operand types: string >> object
+Unsupported operand types: string >> stdClass
 Unsupported operand types: resource >> null
 Unsupported operand types: null >> resource
 Unsupported operand types: resource >> bool
@@ -1269,13 +1269,13 @@ Unsupported operand types: resource >> string
 Warning: A non-numeric value encountered
 Unsupported operand types: string >> resource
 Unsupported operand types: array & array
-Unsupported operand types: array & object
+Unsupported operand types: array & stdClass
 Unsupported operand types: array & resource
-Unsupported operand types: object & array
-Unsupported operand types: object & object
-Unsupported operand types: object & resource
+Unsupported operand types: stdClass & array
+Unsupported operand types: stdClass & stdClass
+Unsupported operand types: stdClass & resource
 Unsupported operand types: resource & array
-Unsupported operand types: resource & object
+Unsupported operand types: resource & stdClass
 Unsupported operand types: resource & resource
 Unsupported operand types: array & null
 Unsupported operand types: null & array
@@ -1292,21 +1292,21 @@ Unsupported operand types: string & array
 Unsupported operand types: array & string
 Warning: A non-numeric value encountered
 Unsupported operand types: string & array
-Unsupported operand types: object & null
-Unsupported operand types: null & object
-Unsupported operand types: object & bool
-Unsupported operand types: bool & object
-Unsupported operand types: object & bool
-Unsupported operand types: bool & object
-Unsupported operand types: object & int
-Unsupported operand types: int & object
-Unsupported operand types: object & float
-Unsupported operand types: float & object
-Unsupported operand types: object & string
-Unsupported operand types: string & object
-Unsupported operand types: object & string
+Unsupported operand types: stdClass & null
+Unsupported operand types: null & stdClass
+Unsupported operand types: stdClass & bool
+Unsupported operand types: bool & stdClass
+Unsupported operand types: stdClass & bool
+Unsupported operand types: bool & stdClass
+Unsupported operand types: stdClass & int
+Unsupported operand types: int & stdClass
+Unsupported operand types: stdClass & float
+Unsupported operand types: float & stdClass
+Unsupported operand types: stdClass & string
+Unsupported operand types: string & stdClass
+Unsupported operand types: stdClass & string
 Warning: A non-numeric value encountered
-Unsupported operand types: string & object
+Unsupported operand types: string & stdClass
 Unsupported operand types: resource & null
 Unsupported operand types: null & resource
 Unsupported operand types: resource & bool
@@ -1323,13 +1323,13 @@ Unsupported operand types: resource & string
 Warning: A non-numeric value encountered
 Unsupported operand types: string & resource
 Unsupported operand types: array | array
-Unsupported operand types: array | object
+Unsupported operand types: array | stdClass
 Unsupported operand types: array | resource
-Unsupported operand types: object | array
-Unsupported operand types: object | object
-Unsupported operand types: object | resource
+Unsupported operand types: stdClass | array
+Unsupported operand types: stdClass | stdClass
+Unsupported operand types: stdClass | resource
 Unsupported operand types: resource | array
-Unsupported operand types: resource | object
+Unsupported operand types: resource | stdClass
 Unsupported operand types: resource | resource
 Unsupported operand types: array | null
 Unsupported operand types: null | array
@@ -1346,21 +1346,21 @@ Unsupported operand types: string | array
 Unsupported operand types: array | string
 Warning: A non-numeric value encountered
 Unsupported operand types: string | array
-Unsupported operand types: object | null
-Unsupported operand types: null | object
-Unsupported operand types: object | bool
-Unsupported operand types: bool | object
-Unsupported operand types: object | bool
-Unsupported operand types: bool | object
-Unsupported operand types: object | int
-Unsupported operand types: int | object
-Unsupported operand types: object | float
-Unsupported operand types: float | object
-Unsupported operand types: object | string
-Unsupported operand types: string | object
-Unsupported operand types: object | string
+Unsupported operand types: stdClass | null
+Unsupported operand types: null | stdClass
+Unsupported operand types: stdClass | bool
+Unsupported operand types: bool | stdClass
+Unsupported operand types: stdClass | bool
+Unsupported operand types: bool | stdClass
+Unsupported operand types: stdClass | int
+Unsupported operand types: int | stdClass
+Unsupported operand types: stdClass | float
+Unsupported operand types: float | stdClass
+Unsupported operand types: stdClass | string
+Unsupported operand types: string | stdClass
+Unsupported operand types: stdClass | string
 Warning: A non-numeric value encountered
-Unsupported operand types: string | object
+Unsupported operand types: string | stdClass
 Unsupported operand types: resource | null
 Unsupported operand types: null | resource
 Unsupported operand types: resource | bool
@@ -1377,13 +1377,13 @@ Unsupported operand types: resource | string
 Warning: A non-numeric value encountered
 Unsupported operand types: string | resource
 Unsupported operand types: array ^ array
-Unsupported operand types: array ^ object
+Unsupported operand types: array ^ stdClass
 Unsupported operand types: array ^ resource
-Unsupported operand types: object ^ array
-Unsupported operand types: object ^ object
-Unsupported operand types: object ^ resource
+Unsupported operand types: stdClass ^ array
+Unsupported operand types: stdClass ^ stdClass
+Unsupported operand types: stdClass ^ resource
 Unsupported operand types: resource ^ array
-Unsupported operand types: resource ^ object
+Unsupported operand types: resource ^ stdClass
 Unsupported operand types: resource ^ resource
 Unsupported operand types: array ^ null
 Unsupported operand types: null ^ array
@@ -1400,21 +1400,21 @@ Unsupported operand types: string ^ array
 Unsupported operand types: array ^ string
 Warning: A non-numeric value encountered
 Unsupported operand types: string ^ array
-Unsupported operand types: object ^ null
-Unsupported operand types: null ^ object
-Unsupported operand types: object ^ bool
-Unsupported operand types: bool ^ object
-Unsupported operand types: object ^ bool
-Unsupported operand types: bool ^ object
-Unsupported operand types: object ^ int
-Unsupported operand types: int ^ object
-Unsupported operand types: object ^ float
-Unsupported operand types: float ^ object
-Unsupported operand types: object ^ string
-Unsupported operand types: string ^ object
-Unsupported operand types: object ^ string
+Unsupported operand types: stdClass ^ null
+Unsupported operand types: null ^ stdClass
+Unsupported operand types: stdClass ^ bool
+Unsupported operand types: bool ^ stdClass
+Unsupported operand types: stdClass ^ bool
+Unsupported operand types: bool ^ stdClass
+Unsupported operand types: stdClass ^ int
+Unsupported operand types: int ^ stdClass
+Unsupported operand types: stdClass ^ float
+Unsupported operand types: float ^ stdClass
+Unsupported operand types: stdClass ^ string
+Unsupported operand types: string ^ stdClass
+Unsupported operand types: stdClass ^ string
 Warning: A non-numeric value encountered
-Unsupported operand types: string ^ object
+Unsupported operand types: string ^ stdClass
 Unsupported operand types: resource ^ null
 Unsupported operand types: null ^ resource
 Unsupported operand types: resource ^ bool
@@ -1504,14 +1504,14 @@ No error for "foo" .= STDOUT
 
 UNARY OP:
 Cannot perform bitwise not on array
-Cannot perform bitwise not on object
+Cannot perform bitwise not on stdClass
 Cannot perform bitwise not on resource
 
 
 INCDEC:
 Cannot increment array
 Cannot decrement array
-Cannot increment object
-Cannot decrement object
+Cannot increment stdClass
+Cannot decrement stdClass
 Cannot increment resource
 Cannot decrement resource
index fc2bc326a988e10274c6e77b01efc1efe1dd971a..f726f0cd7e2ee16d0b11361b3f38c8c7296a052d 100644 (file)
@@ -7,7 +7,7 @@ function test1() : array {
 
 test1();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of type array, none returned in %s:%d
+Fatal error: Uncaught TypeError: test1(): Return value must be of type array, none returned in %s:%d
 Stack trace:
 #0 %s(%d): test1()
 #1 {main}
index 07101ca760ee8e963ae59a443745adf53ff05c10..ad88cf12568a3e03eafb68dc324e9942b74220d3 100644 (file)
@@ -8,7 +8,7 @@ function test1() : array {
 
 test1();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of type array, null returned in %s:%d
+Fatal error: Uncaught TypeError: test1(): Return value must be of type array, null returned in %s:%d
 Stack trace:
 #0 %s(%d): test1()
 #1 {main}
index 5d60da25ed121fb895ecb55421423590a1622aba..c2f466cd0119a71073bd92ac1c2aa09b69f4439d 100644 (file)
@@ -7,7 +7,7 @@ function test1() : array {
 }
 test1();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of type array, int returned in %s:%d
+Fatal error: Uncaught TypeError: test1(): Return value must be of type array, int returned in %s:%d
 Stack trace:
 #0 %s(%d): test1()
 #1 {main}
index eae7018dedb4b7c4e3902a3eecd5a465d144bf51..3d2fdda0d9fd99ab89117f96645884021dfa74cb 100644 (file)
@@ -8,7 +8,7 @@ function test1() : array {
 
 test1();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test1() must be of type array, string returned in %s:%d
+Fatal error: Uncaught TypeError: test1(): Return value must be of type array, string returned in %s:%d
 Stack trace:
 #0 %s(%d): test1()
 #1 {main}
index 6313ae69ce24593a10be602c6fd6284de6918fe4..31d5ca8b9ab8be86f49faefb4f4c7aaab1804dea 100644 (file)
@@ -13,7 +13,7 @@ class qux {
 $qux = new qux();
 $qux->foo();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of qux::foo() must be of type foo, qux returned in %s:%d
+Fatal error: Uncaught TypeError: qux::foo(): Return value must be of type foo, qux returned in %s:%d
 Stack trace:
 #0 %s(%d): qux->foo()
 #1 {main}
index 6ff9d7f25c0e07fede8e3165785c883e36d9bb61..763c8664ee541339744533d1e167a5b06188ac1e 100644 (file)
@@ -9,7 +9,7 @@ function &foo(array &$in) : array {
 $array = [1, 2, 3];
 var_dump(foo($array));
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of foo() must be of type array, null returned in %s:%d
+Fatal error: Uncaught TypeError: foo(): Return value must be of type array, null returned in %s:%d
 Stack trace:
 #0 %s(%d): foo(Array)
 #1 {main}
index 1cbdd6184f46e6cc84286e97bdee08e94fa10dae..e7cea22accfbc89cc9104879dc26437273671dcf 100644 (file)
@@ -14,7 +14,7 @@ class foo {
 $baz = new foo();
 var_dump($func=$baz->bar(), $func());
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of foo::{closure}() must be of type array, null returned in %s:%d
+Fatal error: Uncaught TypeError: foo::{closure}(): Return value must be of type array, null returned in %s:%d
 Stack trace:
 #0 %s(%d): foo->{closure}()
 #1 {main}
index d50b09c3f6bf7eea04bc3b16eecd771624848bee..802dd7708dfedb99e37632a903da2b1ca40f79e5 100644 (file)
@@ -17,4 +17,4 @@ try {
 
 ?>
 --EXPECTF--
-Return value of foo() must be of type stdClass, array returned in %s on line %d
+foo(): Return value must be of type stdClass, array returned in %s on line %d
index 0e25dea5593cd9768b94bae86796277d32acd885..1d17b5d770ec40f14f374a501aeee73b6ce28b86 100644 (file)
@@ -21,7 +21,7 @@ Stack trace:
 #0 %s(%d): foo()
 #1 {main}
 
-Next TypeError: Return value of foo() must be of type array, null returned in %s29.php:%d
+Next TypeError: foo(): Return value must be of type array, null returned in %s:%d
 Stack trace:
 #0 %s(%d): foo()
 #1 {main}
index 907d47d66aba97e7d128f1d8059538810baf15fe..2f4cb696d5d5207e804f54458d3d7bc5d952e9e4 100644 (file)
@@ -16,7 +16,7 @@ foo(0);
 ok
 ok
 
-Fatal error: Uncaught TypeError: Return value of foo() must be of type ?array, int returned in %s030.php:3
+Fatal error: Uncaught TypeError: foo(): Return value must be of type ?array, int returned in %s:%d
 Stack trace:
 #0 %s030.php(10): foo(0)
 #1 {main}
index af8b92fb622558431dacdd910ab3282661529e64..60da2d52636690dbb50861413d386520dd09fa9c 100644 (file)
@@ -16,4 +16,4 @@ try {
 }
 ?>
 --EXPECT--
-string(64) "Return value of getNumber() must be of type int, string returned"
+string(62) "getNumber(): Return value must be of type int, string returned"
index ed9a082349d142ae8b0246905904040a67f50b47..e7ca36f475fd9a229135c9fd6adc02c4f193ce8f 100644 (file)
@@ -16,7 +16,7 @@ function boom(): array {
 boom();
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of boom() must be of type array, null returned in %sbug71092.php:%d
+Fatal error: Uncaught TypeError: boom(): Return value must be of type array, null returned in %s:%d
 Stack trace:
 #0 %s(%d): boom()
 #1 {main}
index 14a60c83b4921544fb8d10b0b3a132e8a4514e35..ebed8515e56da7072efdb5898a50176bb2a1bf13 100644 (file)
@@ -10,5 +10,5 @@ if (!PHP_DEBUG) die('skip requires debug build');
 <?php
 zend_test_array_return();
 ?>
---EXPECTF--
-Fatal error: Return value of zend_test_array_return() must be of type array, null returned in %s on line %d
+--EXPECT--
+Fatal error: zend_test_array_return(): Return value must be of type array, null returned in Unknown on line 0
index cbe2335afb282c2da1ddcefce9b85345050435fb..f9cdbec2b761689cf0c8f4084280a2ebb5b03fe6 100644 (file)
@@ -9,7 +9,7 @@ function get_config(): array {
 
 get_config();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of get_config() must be of type array, int returned in %s:%d
+Fatal error: Uncaught TypeError: get_config(): Return value must be of type array, int returned in %s:%d
 Stack trace:
 #0 %s(%d): get_config()
 #1 {main}
index 76a77c07c49321a1cdd8a40a75e75521fbcc23b9..461d80b7fe8329024367370b7d64b0453bbcde0f 100644 (file)
@@ -8,7 +8,7 @@ function foo(): DateTime {
 
 foo();
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of foo() must be of type DateTime, null returned in %s:%d
+Fatal error: Uncaught TypeError: foo(): Return value must be of type DateTime, null returned in %s:%d
 Stack trace:
 #0 %s(%d): foo()
 #1 {main}
index deb8743ab5667ff98cfbc38d73bdd73cc4ddedaf..ba2406c6d388759bd3af6030247cfffb877dd6a6 100644 (file)
@@ -167,7 +167,7 @@ string(3) "bar"
 string(11) "exception 1"
 bool(true)
 string(20) "false ? true : throw"
-string(39) "Unsupported operand types: object + int"
+string(42) "Unsupported operand types: Exception + int"
 string(35) "throw $exception = new Exception();"
 string(37) "throw $exception ??= new Exception();"
 string(30) "throw null ?? new Exception();"
index 2f5069a4331fc8366933d71ec0763f4cd138213c..d3c7c0582fb18fd3b8b6b30dc523f0cd58ed2b42 100644 (file)
@@ -38,6 +38,6 @@ try {
 
 ?>
 --EXPECTF--
-Return value of C::test1() must be of type int, string returned
+C::test1(): Return value must be of type int, string returned
 C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
 C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
index eda77d490b6482eeff9a061a478e7ea5bc17619b..d2a3bcb368cfdab8696609795f5c66c9e2c7ad07 100644 (file)
@@ -29,4 +29,4 @@ array(0) {
 }
 object(Generator)#2 (0) {
 }
-Return value of baz() must be of type iterable, int returned
+baz(): Return value must be of type iterable, int returned
index ded74b046791f58c0fe4027a92f7d5f3fa6208ce..2bd775af0a4742f204b746290b5ae6ab652b0ad1 100644 (file)
@@ -15,6 +15,5 @@ try {
 }
 
 ?>
---EXPECTF--
-Return value of foo() must be of type mixed, none returned
-
+--EXPECT--
+foo(): Return value must be of type mixed, none returned
index 316f465877aa5e2b743138bf0bf88220e52ae2e1..52bd99beb6cd1f51d8686b8a906d3af8f99bc74f 100644 (file)
@@ -15,4 +15,4 @@ try {
 
 ?>
 --EXPECT--
-Return value of foo() must be of type mixed, none returned
+foo(): Return value must be of type mixed, none returned
index c3f06c5bbde879f92ef4b1551b7e2143c74f7e44..002cab6042aee6cdb8bb62c378bc3f6f29645471 100644 (file)
@@ -104,11 +104,11 @@ int(0)
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, StringCapable given, called in %s on line %d
 
 *** Trying resource(%d) of type (stream)
 *** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
@@ -158,11 +158,11 @@ float(0)
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, StringCapable given, called in %s on line %d
 
 *** Trying resource(%d) of type (stream)
 *** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
@@ -211,7 +211,7 @@ string(0) ""
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#%s (0) {
 }
@@ -264,11 +264,11 @@ bool(false)
 
 *** Trying object(stdClass)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#%s (0) {
 }
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, StringCapable given, called in %s on line %d
 
 *** Trying resource(%d) of type (stream)
 *** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
index c0b0df6829678adaa234da999189baa21356c5dd..5ecd533840563d16fac564411c45c2ef9aa0a5da 100644 (file)
@@ -75,30 +75,30 @@ int(1)
 E_NOTICE: A non well formed numeric value encountered on line %d
 int(1)
 *** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, string returned in %s on line %d
 *** Trying string(0) ""
-*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, string returned in %s on line %d
 *** Trying int(2147483647)
 int(2147483647)
 *** Trying float(NAN)
-*** Caught Return value of {closure}() must be of type int, float returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, float returned in %s on line %d
 *** Trying bool(true)
 int(1)
 *** Trying bool(false)
 int(0)
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type int, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type int, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
-*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, StringCapable returned in %s on line %d
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type int, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, resource returned in %s on line %d
 
 Testing 'float' type:
 *** Trying int(1)
@@ -113,9 +113,9 @@ float(1.5)
 E_NOTICE: A non well formed numeric value encountered on line %d
 float(1)
 *** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, string returned in %s on line %d
 *** Trying string(0) ""
-*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, string returned in %s on line %d
 *** Trying int(2147483647)
 float(2147483647)
 *** Trying float(NAN)
@@ -125,18 +125,18 @@ float(1)
 *** Trying bool(false)
 float(0)
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type float, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type float, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
-*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, StringCapable returned in %s on line %d
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type float, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, resource returned in %s on line %d
 
 Testing 'string' type:
 *** Trying int(1)
@@ -162,18 +162,18 @@ string(1) "1"
 *** Trying bool(false)
 string(0) ""
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type string, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type string, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type string, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
 string(6) "foobar"
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type string, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, resource returned in %s on line %d
 
 Testing 'bool' type:
 *** Trying int(1)
@@ -199,17 +199,17 @@ bool(true)
 *** Trying bool(false)
 bool(false)
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type bool, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type bool, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
-*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, StringCapable returned in %s on line %d
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type bool, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, resource returned in %s on line %d
 
 Done
index 5e387c45c8f267f6e7bb6ea7a50b6654343b198d..0fbccb1b69098293bdd710f2a752a09dc93a78cd 100644 (file)
@@ -75,30 +75,30 @@ int(1)
 E_NOTICE: A non well formed numeric value encountered on line %d
 int(1)
 *** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, string returned in %s on line %d
 *** Trying string(0) ""
-*** Caught Return value of {closure}() must be of type int, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, string returned in %s on line %d
 *** Trying int(9223372036854775807)
 int(9223372036854775807)
 *** Trying float(NAN)
-*** Caught Return value of {closure}() must be of type int, float returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, float returned in %s on line %d
 *** Trying bool(true)
 int(1)
 *** Trying bool(false)
 int(0)
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type int, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type int, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
-*** Caught Return value of {closure}() must be of type int, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, StringCapable returned in %s on line %d
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type int, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type int, resource returned in %s on line %d
 
 Testing 'float' type:
 *** Trying int(1)
@@ -113,9 +113,9 @@ float(1.5)
 E_NOTICE: A non well formed numeric value encountered on line %d
 float(1)
 *** Trying string(1) "a"
-*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, string returned in %s on line %d
 *** Trying string(0) ""
-*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, string returned in %s on line %d
 *** Trying int(9223372036854775807)
 float(9.223372036854776E+18)
 *** Trying float(NAN)
@@ -125,18 +125,18 @@ float(1)
 *** Trying bool(false)
 float(0)
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type float, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type float, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
-*** Caught Return value of {closure}() must be of type float, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, StringCapable returned in %s on line %d
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type float, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type float, resource returned in %s on line %d
 
 Testing 'string' type:
 *** Trying int(1)
@@ -162,18 +162,18 @@ string(1) "1"
 *** Trying bool(false)
 string(0) ""
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type string, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type string, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type string, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
 string(6) "foobar"
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type string, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type string, resource returned in %s on line %d
 
 Testing 'bool' type:
 *** Trying int(1)
@@ -199,17 +199,17 @@ bool(true)
 *** Trying bool(false)
 bool(false)
 *** Trying NULL
-*** Caught Return value of {closure}() must be of type bool, null returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, null returned in %s on line %d
 *** Trying array(0) {
 }
-*** Caught Return value of {closure}() must be of type bool, array returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, array returned in %s on line %d
 *** Trying object(stdClass)#6 (0) {
 }
-*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, stdClass returned in %s on line %d
 *** Trying object(StringCapable)#7 (0) {
 }
-*** Caught Return value of {closure}() must be of type bool, object returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, StringCapable returned in %s on line %d
 *** Trying resource(5) of type (stream)
-*** Caught Return value of {closure}() must be of type bool, resource returned in %s on line %d
+*** Caught {closure}(): Return value must be of type bool, resource returned in %s on line %d
 
 Done
index 3c420ed4551ba18f68dc232157b8633398f3909a..6d838848e902ac57e24e84a80f0c7164a29ac444 100644 (file)
@@ -98,11 +98,11 @@ int(2147483647)
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
@@ -151,11 +151,11 @@ float(NAN)
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
@@ -204,11 +204,11 @@ string(0) ""
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
@@ -257,11 +257,11 @@ bool(false)
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
index 6f8504c16c6394166d52e928c490df76adf94288..4705fa81dbd7081b6b08b8a901411bd167bb32b2 100644 (file)
@@ -98,11 +98,11 @@ int(9223372036854775807)
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
@@ -151,11 +151,11 @@ float(NAN)
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
@@ -204,11 +204,11 @@ string(0) ""
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
@@ -257,11 +257,11 @@ bool(false)
 
 *** Trying object(stdClass)#5 (0) {
 }
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, stdClass given, called in %s on line %d
 
 *** Trying object(StringCapable)#6 (0) {
 }
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, StringCapable given, called in %s on line %d
 
 *** Trying resource(5) of type (stream)
 *** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
index cb385422bdb0ad25ef387f9db52ddc3ef4342a9f..f02649b8b55fced433a5af3d548c6e902ce7c931 100644 (file)
@@ -75,7 +75,7 @@ int(1)
 *** Caught {closure}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}(): Argument #1 ($i) must be of type int, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($i) must be of type int, stdClass given, called in %s on line %d
 
 *** Trying resource value
 *** Caught {closure}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
@@ -104,7 +104,7 @@ float(1)
 *** Caught {closure}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}(): Argument #1 ($f) must be of type float, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($f) must be of type float, stdClass given, called in %s on line %d
 
 *** Trying resource value
 *** Caught {closure}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
@@ -133,7 +133,7 @@ string(1) "1"
 *** Caught {closure}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}(): Argument #1 ($s) must be of type string, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($s) must be of type string, stdClass given, called in %s on line %d
 
 *** Trying resource value
 *** Caught {closure}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
@@ -162,7 +162,7 @@ bool(false)
 *** Caught {closure}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
 
 *** Trying object value
-*** Caught {closure}(): Argument #1 ($b) must be of type bool, object given, called in %s on line %d
+*** Caught {closure}(): Argument #1 ($b) must be of type bool, stdClass given, called in %s on line %d
 
 *** Trying resource value
 *** Caught {closure}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
index a5c8921e0a656a532c9b641a04c8951a3454da2b..820f4b0d6f0712208c181ba1833e1c7b4172badd 100644 (file)
@@ -75,7 +75,7 @@ object(B)#3 (0) {
 
 object(A)#3 (0) {
 }
-Return value of A::test2() must be of type B, A returned
+A::test2(): Return value must be of type B, A returned
 
 object(A)#3 (0) {
 }
@@ -84,8 +84,8 @@ object(C)#3 (0) {
 
 object(A)#3 (0) {
 }
-Return value of A::test4() must be of type B|array, A returned
+A::test4(): Return value must be of type B|array, A returned
 
-Return value of {closure}() must be of type static, stdClass returned
+{closure}(): Return value must be of type static, stdClass returned
 object(A)#1 (0) {
 }
index 41f861643b66149c79fbe89966bc7f18632c1d10..25ebe4d236b71455d5e5ae16b83277a62f9e251b 100644 (file)
@@ -31,7 +31,7 @@ object(P)#2 (0) {
 object(P)#2 (0) {
 }
 
-Fatal error: Uncaught TypeError: Return value of C::test() must be of type P, C returned in %s:%d
+Fatal error: Uncaught TypeError: C::test(): Return value must be of type P, C returned in %s:%d
 Stack trace:
 #0 %s(%d): C->test(Object(C))
 #1 {main}
index 4887b3b7967a5e313850307165a274fbffdc821a..bfb02196f1f9b9755c330fb4d3d4c1d5382a30d2 100644 (file)
@@ -79,8 +79,8 @@ true             => Argument ... must be of type int|float, bool given
 false            => Argument ... must be of type int|float, bool given
 null             => Argument ... must be of type int|float, null given
 []               => Argument ... must be of type int|float, array given
-new stdClass     => Argument ... must be of type int|float, object given
-new WithToString => Argument ... must be of type int|float, object given
+new stdClass     => Argument ... must be of type int|float, stdClass given
+new WithToString => Argument ... must be of type int|float, WithToString given
 
 Type int|float|false:
 42               => 42
@@ -95,8 +95,8 @@ true             => Argument ... must be of type int|float|false, bool given
 false            => false
 null             => Argument ... must be of type int|float|false, null given
 []               => Argument ... must be of type int|float|false, array given
-new stdClass     => Argument ... must be of type int|float|false, object given
-new WithToString => Argument ... must be of type int|float|false, object given
+new stdClass     => Argument ... must be of type int|float|false, stdClass given
+new WithToString => Argument ... must be of type int|float|false, WithToString given
 
 Type int|float|bool:
 42               => 42
@@ -111,8 +111,8 @@ true             => true
 false            => false
 null             => Argument ... must be of type int|float|bool, null given
 []               => Argument ... must be of type int|float|bool, array given
-new stdClass     => Argument ... must be of type int|float|bool, object given
-new WithToString => Argument ... must be of type int|float|bool, object given
+new stdClass     => Argument ... must be of type int|float|bool, stdClass given
+new WithToString => Argument ... must be of type int|float|bool, WithToString given
 
 Type int|bool:
 42               => 42
@@ -127,8 +127,8 @@ true             => true
 false            => false
 null             => Argument ... must be of type int|bool, null given
 []               => Argument ... must be of type int|bool, array given
-new stdClass     => Argument ... must be of type int|bool, object given
-new WithToString => Argument ... must be of type int|bool, object given
+new stdClass     => Argument ... must be of type int|bool, stdClass given
+new WithToString => Argument ... must be of type int|bool, WithToString given
 
 Type int|string|null:
 42               => 42
@@ -143,8 +143,8 @@ true             => Argument ... must be of type string|int|null, bool given
 false            => Argument ... must be of type string|int|null, bool given
 null             => null
 []               => Argument ... must be of type string|int|null, array given
-new stdClass     => Argument ... must be of type string|int|null, object given
-new WithToString => Argument ... must be of type string|int|null, object given
+new stdClass     => Argument ... must be of type string|int|null, stdClass given
+new WithToString => Argument ... must be of type string|int|null, WithToString given
 
 Type string|bool:
 42               => Argument ... must be of type string|bool, int given
@@ -159,8 +159,8 @@ true             => true
 false            => false
 null             => Argument ... must be of type string|bool, null given
 []               => Argument ... must be of type string|bool, array given
-new stdClass     => Argument ... must be of type string|bool, object given
-new WithToString => Argument ... must be of type string|bool, object given
+new stdClass     => Argument ... must be of type string|bool, stdClass given
+new WithToString => Argument ... must be of type string|bool, WithToString given
 
 Type float|array:
 42               => 42.0
@@ -175,8 +175,8 @@ true             => Argument ... must be of type array|float, bool given
 false            => Argument ... must be of type array|float, bool given
 null             => Argument ... must be of type array|float, null given
 []               => []
-new stdClass     => Argument ... must be of type array|float, object given
-new WithToString => Argument ... must be of type array|float, object given
+new stdClass     => Argument ... must be of type array|float, stdClass given
+new WithToString => Argument ... must be of type array|float, WithToString given
 
 Type string|array:
 42               => Argument ... must be of type array|string, int given
@@ -191,8 +191,8 @@ true             => Argument ... must be of type array|string, bool given
 false            => Argument ... must be of type array|string, bool given
 null             => Argument ... must be of type array|string, null given
 []               => []
-new stdClass     => Argument ... must be of type array|string, object given
-new WithToString => Argument ... must be of type array|string, object given
+new stdClass     => Argument ... must be of type array|string, stdClass given
+new WithToString => Argument ... must be of type array|string, WithToString given
 
 Type bool|array:
 42               => Argument ... must be of type array|bool, int given
@@ -207,5 +207,5 @@ true             => true
 false            => false
 null             => Argument ... must be of type array|bool, null given
 []               => []
-new stdClass     => Argument ... must be of type array|bool, object given
-new WithToString => Argument ... must be of type array|bool, object given
+new stdClass     => Argument ... must be of type array|bool, stdClass given
+new WithToString => Argument ... must be of type array|bool, WithToString given
index 1b9fa4b316eb8d6aef3f9ba70ccd90337d10cdfc..2b1e7397fbfa6ea5a2dcb3b8773e35880a6807de 100644 (file)
@@ -77,8 +77,8 @@ true             => 1
 false            => 0
 null             => Argument ... must be of type int|float, null given
 []               => Argument ... must be of type int|float, array given
-new stdClass     => Argument ... must be of type int|float, object given
-new WithToString => Argument ... must be of type int|float, object given
+new stdClass     => Argument ... must be of type int|float, stdClass given
+new WithToString => Argument ... must be of type int|float, WithToString given
 
 Type int|float|false:
 42               => 42
@@ -93,8 +93,8 @@ true             => 1
 false            => false
 null             => Argument ... must be of type int|float|false, null given
 []               => Argument ... must be of type int|float|false, array given
-new stdClass     => Argument ... must be of type int|float|false, object given
-new WithToString => Argument ... must be of type int|float|false, object given
+new stdClass     => Argument ... must be of type int|float|false, stdClass given
+new WithToString => Argument ... must be of type int|float|false, WithToString given
 
 Type int|float|bool:
 42               => 42
@@ -109,8 +109,8 @@ true             => true
 false            => false
 null             => Argument ... must be of type int|float|bool, null given
 []               => Argument ... must be of type int|float|bool, array given
-new stdClass     => Argument ... must be of type int|float|bool, object given
-new WithToString => Argument ... must be of type int|float|bool, object given
+new stdClass     => Argument ... must be of type int|float|bool, stdClass given
+new WithToString => Argument ... must be of type int|float|bool, WithToString given
 
 Type int|bool:
 42               => 42
@@ -125,8 +125,8 @@ true             => true
 false            => false
 null             => Argument ... must be of type int|bool, null given
 []               => Argument ... must be of type int|bool, array given
-new stdClass     => Argument ... must be of type int|bool, object given
-new WithToString => Argument ... must be of type int|bool, object given
+new stdClass     => Argument ... must be of type int|bool, stdClass given
+new WithToString => Argument ... must be of type int|bool, WithToString given
 
 Type int|string|null:
 42               => 42
@@ -141,7 +141,7 @@ true             => 1
 false            => 0
 null             => null
 []               => Argument ... must be of type string|int|null, array given
-new stdClass     => Argument ... must be of type string|int|null, object given
+new stdClass     => Argument ... must be of type string|int|null, stdClass given
 new WithToString => "__toString()"
 
 Type string|bool:
@@ -157,7 +157,7 @@ true             => true
 false            => false
 null             => Argument ... must be of type string|bool, null given
 []               => Argument ... must be of type string|bool, array given
-new stdClass     => Argument ... must be of type string|bool, object given
+new stdClass     => Argument ... must be of type string|bool, stdClass given
 new WithToString => "__toString()"
 
 Type float|array:
@@ -173,8 +173,8 @@ true             => 1.0
 false            => 0.0
 null             => Argument ... must be of type array|float, null given
 []               => []
-new stdClass     => Argument ... must be of type array|float, object given
-new WithToString => Argument ... must be of type array|float, object given
+new stdClass     => Argument ... must be of type array|float, stdClass given
+new WithToString => Argument ... must be of type array|float, WithToString given
 
 Type string|array:
 42               => "42"
@@ -189,7 +189,7 @@ true             => "1"
 false            => ""
 null             => Argument ... must be of type array|string, null given
 []               => []
-new stdClass     => Argument ... must be of type array|string, object given
+new stdClass     => Argument ... must be of type array|string, stdClass given
 new WithToString => "__toString()"
 
 Type bool|array:
@@ -205,5 +205,5 @@ true             => true
 false            => false
 null             => Argument ... must be of type array|bool, null given
 []               => []
-new stdClass     => Argument ... must be of type array|bool, object given
-new WithToString => Argument ... must be of type array|bool, object given
+new stdClass     => Argument ... must be of type array|bool, stdClass given
+new WithToString => Argument ... must be of type array|bool, WithToString given
index 2d0683edbbc15ec56d4f55f5600d022c59f5d663..d7a2e230026902389100d8f1a6b9029560328673 100644 (file)
@@ -251,67 +251,67 @@ TypeError: iterableF(): Argument #1 ($param) must be of type ?iterable, int give
 Stack trace:
 #0 %s(60): iterableF(1)
 #1 {main}
-TypeError: intF(): Argument #1 ($param) must be of type ?int, object given, called in %s:%d
+TypeError: intF(): Argument #1 ($param) must be of type ?int, stdClass given, called in %s:%d
 Stack trace:
 #0 %s(68): intF(Object(stdClass))
 #1 {main}
-TypeError: Return value of returnUnloadedClass() must be of type ?I\Dont\Exist, stdClass returned in %s:74
+TypeError: returnUnloadedClass(): Return value must be of type ?I\Dont\Exist, stdClass returned in %s:%d
 Stack trace:
 #0 %s(78): returnUnloadedClass()
 #1 {main}
-TypeError: Return value of returnLoadedClass() must be of type ?RealClass, stdClass returned in %s:84
+TypeError: returnLoadedClass(): Return value must be of type ?RealClass, stdClass returned in %s:%d
 Stack trace:
 #0 %s(88): returnLoadedClass()
 #1 {main}
-TypeError: Return value of returnLoadedInterface() must be of type ?RealInterface, stdClass returned in %s:94
+TypeError: returnLoadedInterface(): Return value must be of type ?RealInterface, stdClass returned in %s:%d
 Stack trace:
 #0 %s(98): returnLoadedInterface()
 #1 {main}
-TypeError: Return value of returnUnloadedClassScalar() must be of type ?I\Dont\Exist, int returned in %s:104
+TypeError: returnUnloadedClassScalar(): Return value must be of type ?I\Dont\Exist, int returned in %s:%d
 Stack trace:
 #0 %s(108): returnUnloadedClassScalar()
 #1 {main}
-TypeError: Return value of returnLoadedClassScalar() must be of type ?RealClass, int returned in %s:114
+TypeError: returnLoadedClassScalar(): Return value must be of type ?RealClass, int returned in %s:%d
 Stack trace:
 #0 %s(118): returnLoadedClassScalar()
 #1 {main}
-TypeError: Return value of returnLoadedInterfaceScalar() must be of type ?RealInterface, int returned in %s:124
+TypeError: returnLoadedInterfaceScalar(): Return value must be of type ?RealInterface, int returned in %s:%d
 Stack trace:
 #0 %s(128): returnLoadedInterfaceScalar()
 #1 {main}
-TypeError: Return value of returnCallable() must be of type ?callable, int returned in %s:134
+TypeError: returnCallable(): Return value must be of type ?callable, int returned in %s:%d
 Stack trace:
 #0 %s(138): returnCallable()
 #1 {main}
-TypeError: Return value of returnIterable() must be of type ?iterable, int returned in %s:144
+TypeError: returnIterable(): Return value must be of type ?iterable, int returned in %s:%d
 Stack trace:
 #0 %s(148): returnIterable()
 #1 {main}
-TypeError: Return value of returnInt() must be of type ?int, object returned in %s:154
+TypeError: returnInt(): Return value must be of type ?int, stdClass returned in %s:%d
 Stack trace:
 #0 %s(158): returnInt()
 #1 {main}
-TypeError: Return value of returnMissingUnloadedClass() must be of type ?I\Dont\Exist, none returned in %s:164
+TypeError: returnMissingUnloadedClass(): Return value must be of type ?I\Dont\Exist, none returned in %s:%d
 Stack trace:
 #0 %s(167): returnMissingUnloadedClass()
 #1 {main}
-TypeError: Return value of returnMissingLoadedClass() must be of type ?RealClass, none returned in %s:173
+TypeError: returnMissingLoadedClass(): Return value must be of type ?RealClass, none returned in %s:%d
 Stack trace:
 #0 %s(176): returnMissingLoadedClass()
 #1 {main}
-TypeError: Return value of returnMissingLoadedInterface() must be of type ?RealInterface, none returned in %s:182
+TypeError: returnMissingLoadedInterface(): Return value must be of type ?RealInterface, none returned in %s:%d
 Stack trace:
 #0 %s(185): returnMissingLoadedInterface()
 #1 {main}
-TypeError: Return value of returnMissingCallable() must be of type ?callable, none returned in %s:191
+TypeError: returnMissingCallable(): Return value must be of type ?callable, none returned in %s:%d
 Stack trace:
 #0 %s(194): returnMissingCallable()
 #1 {main}
-TypeError: Return value of returnMissingIterable() must be of type ?iterable, none returned in %s:200
+TypeError: returnMissingIterable(): Return value must be of type ?iterable, none returned in %s:%d
 Stack trace:
 #0 %s(203): returnMissingIterable()
 #1 {main}
-TypeError: Return value of returnMissingInt() must be of type ?int, none returned in %s:209
+TypeError: returnMissingInt(): Return value must be of type ?int, none returned in %s:%d
 Stack trace:
 #0 %s(212): returnMissingInt()
 #1 {main}
index cb8446d2ea888adbb493478b09bba91604ca4d55..ba5cb9c747a05b3abc2314240bf43bd1cc13e16d 100644 (file)
@@ -136,7 +136,15 @@ ZEND_API const char *zend_zval_type_name(const zval *arg) /* {{{ */
 {
        ZVAL_DEREF(arg);
 
-       return Z_ISUNDEF_P(arg) ? "null" : zend_get_type_by_const(Z_TYPE_P(arg));
+       if (Z_ISUNDEF_P(arg)) {
+               return "null";
+       }
+
+       if (Z_TYPE_P(arg) == IS_OBJECT) {
+               return ZSTR_VAL(Z_OBJCE_P(arg)->name);
+       }
+
+       return zend_get_type_by_const(Z_TYPE_P(arg));
 }
 /* }}} */
 
index 0a18ab62fab199e1dd9de965c667d035e5850f58..224dfb71d07fec974931200dd82e44026e989b7a 100644 (file)
@@ -663,13 +663,7 @@ static ZEND_COLD void zend_verify_type_error_common(
        *need_msg = zend_type_to_string_resolved(arg_info->type, zf->common.scope);
 
        if (value) {
-               zend_bool has_class = ZEND_TYPE_HAS_CLASS(arg_info->type)
-                       || (ZEND_TYPE_FULL_MASK(arg_info->type) & MAY_BE_STATIC);
-               if (has_class && Z_TYPE_P(value) == IS_OBJECT) {
-                       *given_kind = ZSTR_VAL(Z_OBJCE_P(value)->name);
-               } else {
-                       *given_kind = zend_zval_type_name(value);
-               }
+               *given_kind = zend_zval_type_name(value);
        } else {
                *given_kind = "none";
        }
@@ -849,7 +843,7 @@ ZEND_COLD zend_never_inline void zend_verify_property_type_error(zend_property_i
 
        type_str = zend_type_to_string(info->type);
        zend_type_error("Cannot assign %s to property %s::$%s of type %s",
-               Z_TYPE_P(property) == IS_OBJECT ? ZSTR_VAL(Z_OBJCE_P(property)->name) : zend_zval_type_name(property),
+               zend_zval_type_name(property),
                ZSTR_VAL(info->ce->name),
                zend_get_unmangled_property_name(info->name),
                ZSTR_VAL(type_str));
@@ -1187,7 +1181,7 @@ ZEND_API ZEND_COLD void zend_verify_return_error(
                zf, arg_info, cache_slot, value,
                &fname, &fsep, &fclass, &need_msg, &given_msg);
 
-       zend_type_error("Return value of %s%s%s() must be of type %s, %s returned",
+       zend_type_error("%s%s%s(): Return value must be of type %s, %s returned",
                fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg);
 
        zend_string_release(need_msg);
@@ -1206,7 +1200,7 @@ static ZEND_COLD void zend_verify_internal_return_error(
                zf, arg_info, cache_slot, value,
                &fname, &fsep, &fclass, &need_msg, &given_msg);
 
-       zend_error_noreturn(E_CORE_ERROR, "Return value of %s%s%s() must be of type %s, %s returned",
+       zend_error_noreturn(E_CORE_ERROR, "%s%s%s(): Return value must be of type %s, %s returned",
                fclass, fsep, fname, ZSTR_VAL(need_msg), given_msg);
 }
 
@@ -2952,7 +2946,7 @@ ZEND_API ZEND_COLD void zend_throw_ref_type_error_type(zend_property_info *prop1
        zend_string *type1_str = zend_type_to_string(prop1->type);
        zend_string *type2_str = zend_type_to_string(prop2->type);
        zend_type_error("Reference with value of type %s held by property %s::$%s of type %s is not compatible with property %s::$%s of type %s",
-               Z_TYPE_P(zv) == IS_OBJECT ? ZSTR_VAL(Z_OBJCE_P(zv)->name) : zend_zval_type_name(zv),
+               zend_zval_type_name(zv),
                ZSTR_VAL(prop1->ce->name),
                zend_get_unmangled_property_name(prop1->name),
                ZSTR_VAL(type1_str),
@@ -2967,7 +2961,7 @@ ZEND_API ZEND_COLD void zend_throw_ref_type_error_type(zend_property_info *prop1
 ZEND_API ZEND_COLD void zend_throw_ref_type_error_zval(zend_property_info *prop, zval *zv) {
        zend_string *type_str = zend_type_to_string(prop->type);
        zend_type_error("Cannot assign %s to reference held by property %s::$%s of type %s",
-               Z_TYPE_P(zv) == IS_OBJECT ? ZSTR_VAL(Z_OBJCE_P(zv)->name) : zend_zval_type_name(zv),
+               zend_zval_type_name(zv),
                ZSTR_VAL(prop->ce->name),
                zend_get_unmangled_property_name(prop->name),
                ZSTR_VAL(type_str)
@@ -2979,7 +2973,7 @@ ZEND_API ZEND_COLD void zend_throw_conflicting_coercion_error(zend_property_info
        zend_string *type1_str = zend_type_to_string(prop1->type);
        zend_string *type2_str = zend_type_to_string(prop2->type);
        zend_type_error("Cannot assign %s to reference held by property %s::$%s of type %s and property %s::$%s of type %s, as this would result in an inconsistent type conversion",
-               Z_TYPE_P(zv) == IS_OBJECT ? ZSTR_VAL(Z_OBJCE_P(zv)->name) : zend_zval_type_name(zv),
+               zend_zval_type_name(zv),
                ZSTR_VAL(prop1->ce->name),
                zend_get_unmangled_property_name(prop1->name),
                ZSTR_VAL(type1_str),
index a2f81090e77e438bd3267b12a236660b1dba3579..acb641beb0c74e35354495b98af4dcac45b9dfc5 100644 (file)
@@ -33,7 +33,7 @@ object(DateTimeZone)#%d (2) {
 }
 int(0)
 
-Fatal error: Uncaught TypeError: timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, object given in %s:%d
+Fatal error: Uncaught TypeError: timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, DateTime given in %s:%d
 Stack trace:
 #0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone))
 #1 {main}
index 3ac17de49f0c2aade408ce3e8748cc0368c4466e..4f542c82c80091ee01258203f6268894431a095b 100644 (file)
@@ -24,4 +24,4 @@ object(DateTimeImmutable)#%d (3) {
   ["timezone"]=>
   string(13) "Europe/London"
 }
-DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, object given
+DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, DateTimeImmutable given
index 6407333f0688afc7fe70a19c35429f77a84306e8..59f61922141b0b93282238f8e469a0bcdcc0f546 100644 (file)
@@ -30,4 +30,4 @@ object(DateTime)#%d (3) {
   string(13) "Europe/London"
 }
 bool(true)
-DateTime::createFromImmutable(): Argument #1 ($object) must be of type DateTimeImmutable, object given
+DateTime::createFromImmutable(): Argument #1 ($object) must be of type DateTimeImmutable, DateTime given
index b45e8be931163f03cde57088a4e3a337c2c5889d..58e7f10e1302fd898396ad5232cdd44b58206dd5 100644 (file)
@@ -10,4 +10,4 @@ try {
 }
 ?>
 --EXPECT--
-strtotime(): Argument #2 ($now) must be of type ?int, object given
+strtotime(): Argument #2 ($now) must be of type ?int, DateTime given
index 9ab11355e8b3c270da741ec7194463d17c67e56c..1b13e62b25498371ef729f9c895e3d2719fab0e2 100644 (file)
@@ -51,7 +51,7 @@ microtime(): Argument #1 ($get_as_float) must be of type bool, array given
 
 --> bad arg: object(stdClass)#%d (0) {
 }
-microtime(): Argument #1 ($get_as_float) must be of type bool, object given
+microtime(): Argument #1 ($get_as_float) must be of type bool, stdClass given
 
 --> bad arg: int(1)
 float(%s)
index 864dc54c2a9fbc3dd42b0093b8addb9becd80915..2d2f032dfdbedab22102957a83a81daa8e3a038d 100644 (file)
@@ -65,7 +65,7 @@ try {
 *** Testing timezone_offset_get() : error conditions ***
 
 -- Testing timezone_offset_get() function with an invalid values for $object argument --
-string(87) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, object given"
+string(89) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, stdClass given"
 
 string(84) "timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, int given"
 
@@ -73,7 +73,7 @@ string(85) "timezone_offset_get(): Argument #1 ($object) must be of type DateTim
 
 
 -- Testing timezone_offset_get() function with an invalid values for $datetime argument --
-string(94) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, object given"
+string(96) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, stdClass given"
 
 string(91) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, int given"
 
index a1e66f99e9de9209e8b608ff6262109cae248a72..d44b5fc282802c03545962c03b1840d71685ff28 100644 (file)
@@ -19,4 +19,4 @@ foreach (['', 1, NULL, $x] as $value) {
 NumberFormatter::format(): Argument #1 ($value) must be of type int|float, string given
 string(1) "1"
 string(1) "0"
-NumberFormatter::format(): Argument #1 ($value) must be of type int|float, object given
+NumberFormatter::format(): Argument #1 ($value) must be of type int|float, NumberFormatter given
index 9da547fe5a27a108fad9678ddf3560ae1101a3da..dbed3349622f1b7d1b0cb7b4082cd48d10f751ee 100644 (file)
@@ -47,7 +47,7 @@ try {
 --EXPECT--
 error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
 
-error: 0, IntlCalendar::equals(): Argument #1 ($calendar) must be of type IntlCalendar, object given
+error: 0, IntlCalendar::equals(): Argument #1 ($calendar) must be of type IntlCalendar, stdClass given
 
 error: 0, IntlCalendar::equals() expects exactly 1 parameter, 2 given
 
index 93c3c497a29dfe14964da93ee5d7a938c97463d8..e3cb4bb5679c7af88e8a6b2b21d63992db114b1e 100644 (file)
@@ -34,7 +34,7 @@ libxml_set_streams_context(): Argument #1 ($context) must be of type resource, s
 bool(true)
 libxml_set_streams_context(): Argument #1 ($context) must be of type resource, int given
 bool(true)
-libxml_set_streams_context(): Argument #1 ($context) must be of type resource, object given
+libxml_set_streams_context(): Argument #1 ($context) must be of type resource, stdClass given
 bool(true)
 libxml_set_streams_context(): Argument #1 ($context) must be of type resource, array given
 bool(true)
index 3abb5c23bae0e48ff07dda4ab408496655c407c9..4a7455d2a1edfbd047b3992ff62ccd7a91d6a5d2 100644 (file)
@@ -166,9 +166,9 @@ ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must
 --heredoc--
 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
 --instance of classWithToString--
-TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, object given
+TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, classWithToString given
 --instance of classWithoutToString--
-TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, object given
+TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, classWithoutToString given
 --undefined var--
 int(12345)
 --unset var--
index f9bf85a371f0e35eb67bbb39eec7654977460f22..99b4288192b07ea444315b980e08990f7f8fee19 100644 (file)
@@ -167,7 +167,7 @@ ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must
 --instance of classWithToString--
 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be 'none', 'long', 'entity' or a valid codepoint
 --instance of classWithoutToString--
-TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, object given
+TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|int|null, classWithoutToString given
 --undefined var--
 int(0)
 --unset var--
index 341a08ef7923640a2b2a316db7539b6c57c870a4..564751a25bab827bb91c01e6160c258a43b8f3a4 100644 (file)
@@ -130,7 +130,7 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 mysqli object is not fully initialized
-[0] mysqli_result::fetch_object(): Argument #1 ($class_name) must be of type string, object given in %s on line %d
+[0] mysqli_result::fetch_object(): Argument #1 ($class_name) must be of type string, mysqli given in %s on line %d
 [0] mysqli_result::fetch_object() expects at most 2 parameters, 3 given in %s on line %d
 [0] mysqli_result::fetch_object(): Argument #2 ($params) must be of type array, null given in %s on line %d
 Exception: Too few arguments to function mysqli_fetch_object_construct::__construct(), 1 passed and exactly 2 expected
index 26d9971d37bacc7249c8e75e145283982e4959ac..146e1544e6b11345c1708f4535e08dd1246c6cc9 100644 (file)
@@ -10,7 +10,7 @@ test(new stdClass);
 
 ?>
 --EXPECTF--
-Fatal error: Uncaught TypeError: Return value of test() must be of type iterable, object returned in %s:%d
+Fatal error: Uncaught TypeError: test(): Return value must be of type iterable, stdClass returned in %s:%d
 Stack trace:
 #0 %s(%d): test(Object(stdClass))
 #1 {main}
index b53d24d4827ac0381f2b5eb5a6e03410cdf2ff29..bcfdded45edb930fbca350a01898ff2cb893b1a5 100644 (file)
@@ -19,7 +19,7 @@ function test1($x) : callable {
 try {
     test1(1);
 } catch (Error $e) {
-    echo "Error: {$e->getMessage()}\n";
+    echo $e->getMessage() . "\n";
 }
 
 class Foo {}
@@ -31,10 +31,10 @@ function test2() : Foo {
 try {
     test2();
 } catch (Error $e) {
-    echo "Error: {$e->getMessage()}\n";
+    echo $e->getMessage() . "\n";
 }
 
 ?>
 --EXPECT--
-Error: Return value of test1() must be of type callable, string returned
-Error: Return value of test2() must be of type Foo, stdClass returned
+test1(): Return value must be of type callable, string returned
+test2(): Return value must be of type Foo, stdClass returned
index b3450beff71a232f42e8cfad4cdf4603f8ae3893..0d7b5e1b8b5873c688c75104a950d815f231526c 100644 (file)
@@ -66,5 +66,5 @@ array(2) {
   [2]=>
   string(4) "test"
 }
-preg_grep(): Argument #1 ($regex) must be of type string, object given
+preg_grep(): Argument #1 ($regex) must be of type string, stdClass given
 Done
index e052327ceab9748c2b9f35fbb7aff898067f3d91..055579cb683070cc00ab161acd0bb0d4754538c1 100644 (file)
@@ -80,5 +80,5 @@ array(1) {
     string(1) "t"
   }
 }
-preg_match_all(): Argument #1 ($pattern) must be of type string, object given
+preg_match_all(): Argument #1 ($pattern) must be of type string, stdClass given
 NULL
index b4540bf5da15949d65695ecb66a09604af246606..011ba6f97b524e0f2286b2b9ed1a0a5a63c78737 100644 (file)
@@ -60,4 +60,4 @@ preg_match(): Argument #1 ($pattern) must be of type string, array given
 
 Arg value is /[a-zA-Z]/
 int(1)
-preg_match(): Argument #1 ($pattern) must be of type string, object given
+preg_match(): Argument #1 ($pattern) must be of type string, stdClass given
index a03bcf4417b0188983962c49527820003a4fb7ad..ebc91d97fd0ff9ecd6a4f8f086d2fc719889ae2f 100644 (file)
@@ -36,5 +36,5 @@ int(1)
 
 Arg value is: Array
 preg_match(): Argument #2 ($subject) must be of type string, array given
-preg_match(): Argument #2 ($subject) must be of type string, object given
+preg_match(): Argument #2 ($subject) must be of type string, stdClass given
 Done
index daf7852767027a15c02d2ae90b0881eeb9848a3b..552b668082d59fd717bc9be52216ffc0e1fd4443 100644 (file)
@@ -67,4 +67,4 @@ array(3) {
   [2]=>
   string(4) " 5 6"
 }
-preg_split(): Argument #1 ($pattern) must be of type string, object given
+preg_split(): Argument #1 ($pattern) must be of type string, stdClass given
index e48d43587e52036b7f05a9fa7871a9b64ed11967..e5dce75367486ad6fd980df51b8667c47013a0f7 100644 (file)
@@ -63,4 +63,4 @@ Method 1 does not exist
 Method 1.5 does not exist
 Method 1 does not exist
 ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, array given
-ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, object given
+ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, C given
index 86060c8acf119f6ad94e1c45ce30a6fe2ca2698a..61d29b89d70e8c5d98f5670b4e8df92d2458a424 100644 (file)
@@ -61,4 +61,4 @@ Property 1 does not exist
 Property 1.5 does not exist
 Property 1 does not exist
 ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, array given
-ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, object given
+ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, C given
index 88244b79403700e4056dbe17391b72a78bc2f6fb..0d1d63eb28b43da0c6373c1c906bc71896eaa466 100644 (file)
@@ -41,7 +41,7 @@ var_dump(unserialize('O:19:"ReflectionReference":0:{}'));
 ?>
 --EXPECTF--
 Call to private ReflectionReference::__construct() from invalid context
-ReflectionReference::fromArrayElement(): Argument #1 ($array) must be of type array, object given
+ReflectionReference::fromArrayElement(): Argument #1 ($array) must be of type array, stdClass given
 ReflectionReference::fromArrayElement(): Argument #2 ($key) must be of type string|int, float given
 Array key not found
 Serialization of 'ReflectionReference' is not allowed
index 6c1184995678cc7e7e44285b97651fb0b2f3cb79..bae8ecb6259c45f8f2c91d032a51626793139858 100644 (file)
@@ -86,5 +86,5 @@ session_start();
 --EXPECT--
 *** Testing session_set_save_handler() function: interface wrong ***
 bool(true)
-session_set_save_handler(): Argument #1 ($open) must be of type SessionHandlerInterface, object given
+session_set_save_handler(): Argument #1 ($open) must be of type SessionHandlerInterface, MySession2 given
 good handler writing
index 12e632514e2b49745d45d46e3f244d9c6505f4aa..ab9b430d2a7ec26a1ecf7e96415de483229b67be 100644 (file)
@@ -12,4 +12,4 @@ try {
 
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, SplFixedArray given
index 573a995cb1fcde9bbb80d922297057fa3a44ec0e..f726c9d956d531ed90ac73663db7926be7fea900 100644 (file)
@@ -23,6 +23,6 @@ try {
 
 ?>
 --EXPECT--
-Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given
+Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, stdClass given
 Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
 Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given
index 21ab075cc92d0eafcdb624d47a9fc61e980398f8..38dfde3f03d6f7d146ac6bdf56004b12fc56f254 100644 (file)
@@ -83,8 +83,8 @@ NULL
 ===1===
 object(stdClass)#%d (0) {
 }
-CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, object given
-CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, object given
+CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, stdClass given
+CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, stdClass given
 ===2===
 object(MyFoo)#%d (0) {
 }
@@ -124,8 +124,8 @@ int(0)
 ===1===
 object(stdClass)#1 (0) {
 }
-CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, object given
-CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, object given
+CachingIterator::offsetExists(): Argument #1 ($index) must be of type string, stdClass given
+CachingIterator::offsetGet(): Argument #1 ($index) must be of type string, stdClass given
 ===2===
 object(MyFoo)#2 (0) {
 }
index 39a94ba8d32c8dbba21163c538ac5e3e4930a753..80225720f27bc9dd115df9b9254e8b105ef1b3cc 100644 (file)
@@ -9,4 +9,4 @@ try {
 }
 ?>
 --EXPECT--
-RecursiveCachingIterator::__construct(): Argument #1 ($iterator) must be of type RecursiveIterator, object given
+RecursiveCachingIterator::__construct(): Argument #1 ($iterator) must be of type RecursiveIterator, ArrayIterator given
index 8966c546911774f90d9951e88dd4a1a994c1b298..95064b739ae7327aefe2ba2555f5f90a8c795edb 100644 (file)
@@ -172,7 +172,7 @@ array_diff_assoc(): Argument #1 ($arr1) must be of type array, string given
 array_diff_assoc(): Argument #1 ($arr1) must be of type array, string given
 
 -- Iteration 23 --
-array_diff_assoc(): Argument #1 ($arr1) must be of type array, object given
+array_diff_assoc(): Argument #1 ($arr1) must be of type array, classA given
 
 -- Iteration 24 --
 array_diff_assoc(): Argument #1 ($arr1) must be of type array, null given
index c5d5383e9de3f41ffe0fccf9c05450a1499cf7e0..b96db1326a8196a0ab4c097bb9ab3fcad5d40bd8 100644 (file)
@@ -172,7 +172,7 @@ array_diff_assoc(): Argument #2 ($arr2) must be of type array, string given
 array_diff_assoc(): Argument #2 ($arr2) must be of type array, string given
 
 -- Iteration 23 --
-array_diff_assoc(): Argument #2 ($arr2) must be of type array, object given
+array_diff_assoc(): Argument #2 ($arr2) must be of type array, classA given
 
 -- Iteration 24 --
 array_diff_assoc(): Argument #2 ($arr2) must be of type array, null given
index af334626cb618ab0808975d4e96c79e814fccbb2..192257ae35522c837ae0547e80913c25ea59cb35 100644 (file)
@@ -192,12 +192,12 @@ array_diff_key(): Argument #1 ($arr1) must be of type array, string given
 array_diff_key(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_diff_key(): Argument #1 ($arr1) must be of type array, object given
-array_diff_key(): Argument #1 ($arr1) must be of type array, object given
+array_diff_key(): Argument #1 ($arr1) must be of type array, classWithToString given
+array_diff_key(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_diff_key(): Argument #1 ($arr1) must be of type array, object given
-array_diff_key(): Argument #1 ($arr1) must be of type array, object given
+array_diff_key(): Argument #1 ($arr1) must be of type array, classWithoutToString given
+array_diff_key(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_diff_key(): Argument #1 ($arr1) must be of type array, null given
index 2dd3c959073788010d413ef7d5cf486d7ecf1a59..ec7749ebba1ce435e2d431704412fc78fc30de70 100644 (file)
@@ -193,12 +193,12 @@ array_diff_key(): Argument #2 ($arr2) must be of type array, string given
 array_diff_key(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_diff_key(): Argument #2 ($arr2) must be of type array, object given
-array_diff_key(): Argument #2 ($arr2) must be of type array, object given
+array_diff_key(): Argument #2 ($arr2) must be of type array, classWithToString given
+array_diff_key(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_diff_key(): Argument #2 ($arr2) must be of type array, object given
-array_diff_key(): Argument #2 ($arr2) must be of type array, object given
+array_diff_key(): Argument #2 ($arr2) must be of type array, classWithoutToString given
+array_diff_key(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_diff_key(): Argument #2 ($arr2) must be of type array, null given
index 368fce24db5653f208136393a7604f7a3639a1a0..f888f69b2b0ea4ad6266e687e1e064e2d4101224 100644 (file)
@@ -179,10 +179,10 @@ array_diff_uassoc(): Argument #1 ($arr1) must be of type array, string given
 array_diff_uassoc(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_diff_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_diff_uassoc(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_diff_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_diff_uassoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_diff_uassoc(): Argument #1 ($arr1) must be of type array, null given
index e906b450e544ff2b3a6961ab95383e6049d76cbf..5781f1e9bd47ee9bfc00439cc3d6fc5d045f2dec 100644 (file)
@@ -179,10 +179,10 @@ array_diff_uassoc(): Argument #2 ($arr2) must be of type array, string given
 array_diff_uassoc(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_diff_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_diff_uassoc(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_diff_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_diff_uassoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_diff_uassoc(): Argument #2 ($arr2) must be of type array, null given
index 5aef21c0c35874eac689cecf8faa418204461686..dffb3be7c95d677cefd4e8a3da417e1a1b281d18 100644 (file)
@@ -200,12 +200,12 @@ array_diff_ukey(): Argument #1 ($arr1) must be of type array, string given
 array_diff_ukey(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_diff_ukey(): Argument #1 ($arr1) must be of type array, object given
-array_diff_ukey(): Argument #1 ($arr1) must be of type array, object given
+array_diff_ukey(): Argument #1 ($arr1) must be of type array, classWithToString given
+array_diff_ukey(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_diff_ukey(): Argument #1 ($arr1) must be of type array, object given
-array_diff_ukey(): Argument #1 ($arr1) must be of type array, object given
+array_diff_ukey(): Argument #1 ($arr1) must be of type array, classWithoutToString given
+array_diff_ukey(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_diff_ukey(): Argument #1 ($arr1) must be of type array, null given
index 368e9873cae270bf24132faf275dd5f81892fbcb..1af7b5567d207d88dd2f3e301528e80c604369b9 100644 (file)
@@ -204,12 +204,12 @@ array_diff_ukey(): Argument #2 ($arr2) must be of type array, string given
 array_diff_ukey(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_diff_ukey(): Argument #2 ($arr2) must be of type array, object given
-array_diff_ukey(): Argument #2 ($arr2) must be of type array, object given
+array_diff_ukey(): Argument #2 ($arr2) must be of type array, classWithToString given
+array_diff_ukey(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_diff_ukey(): Argument #2 ($arr2) must be of type array, object given
-array_diff_ukey(): Argument #2 ($arr2) must be of type array, object given
+array_diff_ukey(): Argument #2 ($arr2) must be of type array, classWithoutToString given
+array_diff_ukey(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_diff_ukey(): Argument #2 ($arr2) must be of type array, null given
index 94025ec65455d13bb530c7205b26f0e5aab18025..44734ad85603881af61ec57fd87bebaebd713463 100644 (file)
@@ -150,7 +150,7 @@ echo "Done";
 
 -- Iteration 22 --array_diff(): Argument #1 ($arr1) must be of type array, string given
 
--- Iteration 23 --array_diff(): Argument #1 ($arr1) must be of type array, object given
+-- Iteration 23 --array_diff(): Argument #1 ($arr1) must be of type array, classA given
 
 -- Iteration 24 --array_diff(): Argument #1 ($arr1) must be of type array, null given
 
index f81f81388a529f89fe49eb3afbd6ed9c13b289fe..9dc1c737bd84f0be75c43e9607803295b77907d9 100644 (file)
@@ -149,7 +149,7 @@ echo "Done";
 
 -- Iteration 22 --array_diff(): Argument #2 ($arr2) must be of type array, string given
 
--- Iteration 23 --array_diff(): Argument #2 ($arr2) must be of type array, object given
+-- Iteration 23 --array_diff(): Argument #2 ($arr2) must be of type array, classA given
 
 -- Iteration 24 --array_diff(): Argument #2 ($arr2) must be of type array, null given
 
index fee88db0b08fcb0cff908014de0d0b4898ff64f6..4ef72323ca7af54ee3abe5352e2f248a1ff41edc 100644 (file)
@@ -179,8 +179,8 @@ array_intersect_assoc(): Argument #1 ($arr1) must be of type array, string given
 -- Iteration 20 --array_intersect_assoc(): Argument #1 ($arr1) must be of type array, string given
 array_intersect_assoc(): Argument #1 ($arr1) must be of type array, string given
 
--- Iteration 21 --array_intersect_assoc(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_assoc(): Argument #1 ($arr1) must be of type array, object given
+-- Iteration 21 --array_intersect_assoc(): Argument #1 ($arr1) must be of type array, classA given
+array_intersect_assoc(): Argument #1 ($arr1) must be of type array, classA given
 
 -- Iteration 22 --array_intersect_assoc(): Argument #1 ($arr1) must be of type array, null given
 array_intersect_assoc(): Argument #1 ($arr1) must be of type array, null given
index e79d6c86dfb7662406b83d6d4e75ff5be996f0c7..453d5206a516dc976ff8a8373a2cacac18c93c9c 100644 (file)
@@ -180,8 +180,8 @@ array_intersect_assoc(): Argument #2 ($arr2) must be of type array, string given
 -- Iteration 20 --array_intersect_assoc(): Argument #2 ($arr2) must be of type array, string given
 array_intersect_assoc(): Argument #2 ($arr2) must be of type array, string given
 
--- Iteration 21 --array_intersect_assoc(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_assoc(): Argument #2 ($arr2) must be of type array, object given
+-- Iteration 21 --array_intersect_assoc(): Argument #2 ($arr2) must be of type array, classA given
+array_intersect_assoc(): Argument #2 ($arr2) must be of type array, classA given
 
 -- Iteration 22 --array_intersect_assoc(): Argument #2 ($arr2) must be of type array, null given
 array_intersect_assoc(): Argument #2 ($arr2) must be of type array, null given
index 821e5f5a1ada02cbeea4317ee1c9b027eaa254ea..62ae4b9ea460f83566156bab6541ae5741903667 100644 (file)
@@ -196,12 +196,12 @@ array_intersect_key(): Argument #1 ($arr1) must be of type array, string given
 array_intersect_key(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_intersect_key(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_key(): Argument #1 ($arr1) must be of type array, object given
+array_intersect_key(): Argument #1 ($arr1) must be of type array, classWithToString given
+array_intersect_key(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_intersect_key(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_key(): Argument #1 ($arr1) must be of type array, object given
+array_intersect_key(): Argument #1 ($arr1) must be of type array, classWithoutToString given
+array_intersect_key(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_intersect_key(): Argument #1 ($arr1) must be of type array, null given
index b6c791ce57d424241107b344ca2a4d265c8cc22f..a494f81fc6127b8882c6267e1341c7c1cab77fd6 100644 (file)
@@ -197,12 +197,12 @@ array_intersect_key(): Argument #2 ($arr2) must be of type array, string given
 array_intersect_key(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_intersect_key(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_key(): Argument #2 ($arr2) must be of type array, object given
+array_intersect_key(): Argument #2 ($arr2) must be of type array, classWithToString given
+array_intersect_key(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_intersect_key(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_key(): Argument #2 ($arr2) must be of type array, object given
+array_intersect_key(): Argument #2 ($arr2) must be of type array, classWithoutToString given
+array_intersect_key(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_intersect_key(): Argument #2 ($arr2) must be of type array, null given
index f6872377326aa6a33097642569217ccb59ade7f0..872fe595360ef28f0cf731b1233dc59c9d2c1b27 100644 (file)
@@ -204,12 +204,12 @@ array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, string give
 array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, classWithToString given
+array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
+array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_intersect_uassoc(): Argument #1 ($arr1) must be of type array, null given
index 32633b6a0fbd2998cede22ac1aef0d14dbdb31de..3c3781ef27d0b47f0f24dff0aa0b1114e3037ab4 100644 (file)
@@ -204,12 +204,12 @@ array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, string give
 array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, classWithToString given
+array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
+array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_intersect_uassoc(): Argument #2 ($arr2) must be of type array, null given
index fd0b9f603863aa8c32eaf3bdcf10c97ee7a871bf..7837bee8ec3751b609228cf9a1dc4bc0fe6047da 100644 (file)
@@ -202,12 +202,12 @@ array_intersect_ukey(): Argument #1 ($arr1) must be of type array, string given
 array_intersect_ukey(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_intersect_ukey(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_ukey(): Argument #1 ($arr1) must be of type array, object given
+array_intersect_ukey(): Argument #1 ($arr1) must be of type array, classWithToString given
+array_intersect_ukey(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_intersect_ukey(): Argument #1 ($arr1) must be of type array, object given
-array_intersect_ukey(): Argument #1 ($arr1) must be of type array, object given
+array_intersect_ukey(): Argument #1 ($arr1) must be of type array, classWithoutToString given
+array_intersect_ukey(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_intersect_ukey(): Argument #1 ($arr1) must be of type array, null given
index dc272a78119bfcfa304046ecfbe603f5d864b054..312066709fc1d554b1a5226237b56c2106e8a3da 100644 (file)
@@ -202,12 +202,12 @@ array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
 array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, object given
+array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithToString given
+array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, object given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, object given
+array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithoutToString given
+array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
index 9fb64263ecd2a965c83a5d500808ab181cfa84a0..9b7f1824946e191f1caeef4155a77db8fcdfe7df 100644 (file)
@@ -178,8 +178,8 @@ array_intersect(): Argument #1 ($arr1) must be of type array, string given
 -- Iterator 20 --array_intersect(): Argument #1 ($arr1) must be of type array, string given
 array_intersect(): Argument #1 ($arr1) must be of type array, string given
 
--- Iterator 21 --array_intersect(): Argument #1 ($arr1) must be of type array, object given
-array_intersect(): Argument #1 ($arr1) must be of type array, object given
+-- Iterator 21 --array_intersect(): Argument #1 ($arr1) must be of type array, classA given
+array_intersect(): Argument #1 ($arr1) must be of type array, classA given
 
 -- Iterator 22 --array_intersect(): Argument #1 ($arr1) must be of type array, null given
 array_intersect(): Argument #1 ($arr1) must be of type array, null given
index e4986c103bb9dffffa397cdaa2336533d6676ec7..518cfeb7ccff32e0f242b2ab5eed99ae5b3b71a2 100644 (file)
@@ -179,8 +179,8 @@ array_intersect(): Argument #2 ($arr2) must be of type array, string given
 -- Iterator 20 --array_intersect(): Argument #2 ($arr2) must be of type array, string given
 array_intersect(): Argument #2 ($arr2) must be of type array, string given
 
--- Iterator 21 --array_intersect(): Argument #2 ($arr2) must be of type array, object given
-array_intersect(): Argument #2 ($arr2) must be of type array, object given
+-- Iterator 21 --array_intersect(): Argument #2 ($arr2) must be of type array, classA given
+array_intersect(): Argument #2 ($arr2) must be of type array, classA given
 
 -- Iterator 22 --array_intersect(): Argument #2 ($arr2) must be of type array, null given
 array_intersect(): Argument #2 ($arr2) must be of type array, null given
index 0024ae18672be8240da176f9ea433799b7eacd48..cd68e33515a8b5e2de3479fceb60d03691d7f1c9 100644 (file)
@@ -224,5 +224,5 @@ bool(true)
 Illegal offset type
 
 *** Testing operation on objects ***
-array_key_exists(): Argument #2 ($array) must be of type array, object given
+array_key_exists(): Argument #2 ($array) must be of type array, key_check given
 Done
index 55ed56cbcc0bdbc72ee36bd458c3e8491aa430e0..3e33cb14800361923fe9b7aa5b25f6b120f0db78 100644 (file)
@@ -210,6 +210,6 @@ echo "Done";
 -- With more arguments --array_merge_recursive(): Argument #1 must be of type array, resource given
 
 -- Iteration 24 --
--- With default argument --array_merge_recursive(): Argument #1 must be of type array, object given
--- With more arguments --array_merge_recursive(): Argument #1 must be of type array, object given
+-- With default argument --array_merge_recursive(): Argument #1 must be of type array, A given
+-- With more arguments --array_merge_recursive(): Argument #1 must be of type array, A given
 Done
index ef1c52928f5b269bf1edc10f2c7090de209ed7fe..da52edaf5406e63410cb2b34c16b7e980ace849a 100644 (file)
@@ -151,5 +151,5 @@ echo "Done";
 
 -- Iteration 23 --array_merge_recursive(): Argument #2 must be of type array, resource given
 
--- Iteration 24 --array_merge_recursive(): Argument #2 must be of type array, object given
+-- Iteration 24 --array_merge_recursive(): Argument #2 must be of type array, A given
 Done
index 21148cdb91182d9d55a9d57bde269356978cf8c1..6dbf3b11285295425972156a9decfd97f87ee498 100644 (file)
@@ -173,7 +173,7 @@ array_merge(): Argument #2 must be of type array, string given
 array_merge(): Argument #2 must be of type array, string given
 
 -- Iteration 22 --
-array_merge(): Argument #2 must be of type array, object given
+array_merge(): Argument #2 must be of type array, classA given
 
 -- Iteration 23 --
 array_merge(): Argument #2 must be of type array, null given
index 4ff919d8a830d8003ffec5eb8ecc6b3b32cbaef9..bdb2973c9fe98d43141f58479b295ddcdd745f91 100644 (file)
@@ -56,7 +56,7 @@ string(5) "three"
 int(5)
 
 *** Testing objects with array_search() ***
-array_search(): Argument #2 ($haystack) must be of type array, object given
-array_search(): Argument #2 ($haystack) must be of type array, object given
+array_search(): Argument #2 ($haystack) must be of type array, array_search_check given
+array_search(): Argument #2 ($haystack) must be of type array, array_search_check given
 int(1)
 Done
index dfb6ce0f645f3d260dad80494dcbaa0766496a06..20db93065bfadc3ab43c2ec85aa446ec669d07b3 100644 (file)
@@ -167,10 +167,10 @@ array_udiff_assoc(): Argument #1 ($arr1) must be of type array, string given
 array_udiff_assoc(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_udiff_assoc(): Argument #1 ($arr1) must be of type array, object given
+array_udiff_assoc(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_udiff_assoc(): Argument #1 ($arr1) must be of type array, object given
+array_udiff_assoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_udiff_assoc(): Argument #1 ($arr1) must be of type array, null given
index 3a4bbda98a6a0643f94513e4386ad45e2fd9e851..f6b4065b01b4fbb26715cb63428fa2e7cad2381b 100644 (file)
@@ -167,10 +167,10 @@ array_udiff_assoc(): Argument #2 ($arr2) must be of type array, string given
 array_udiff_assoc(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_udiff_assoc(): Argument #2 ($arr2) must be of type array, object given
+array_udiff_assoc(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_udiff_assoc(): Argument #2 ($arr2) must be of type array, object given
+array_udiff_assoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_udiff_assoc(): Argument #2 ($arr2) must be of type array, null given
index 10180cbce14eddedfa3bbf02ab054d9386ea87df..c2a4e4fd16cf87304276b1cb941ff5bb7fd9c42c 100644 (file)
@@ -168,10 +168,10 @@ array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, string given
 array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_udiff_uassoc(): Argument #1 ($arr1) must be of type array, null given
index 8540bc3d3bfe609afb79b5e9da7bdfce89f0e33e..c17a016a1dde388cdf4966e2d25f8ad5cb4138ab 100644 (file)
@@ -168,10 +168,10 @@ array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, string given
 array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_udiff_uassoc(): Argument #2 ($arr2) must be of type array, null given
index 35ab7f52878f3bc980e822051ea1b98b839c91f8..7d0830a5adf8abb20e41e0a224952acb7e2e390f 100644 (file)
@@ -167,10 +167,10 @@ array_udiff(): Argument #1 ($arr1) must be of type array, string given
 array_udiff(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_udiff(): Argument #1 ($arr1) must be of type array, object given
+array_udiff(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_udiff(): Argument #1 ($arr1) must be of type array, object given
+array_udiff(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_udiff(): Argument #1 ($arr1) must be of type array, null given
index a11bc787e49e2d3e207a22366db0ce14ccf926a6..17de2540c15ccc6a1ebdc3b9c35631068c0d3a90 100644 (file)
@@ -167,10 +167,10 @@ array_udiff(): Argument #2 ($arr2) must be of type array, string given
 array_udiff(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_udiff(): Argument #2 ($arr2) must be of type array, object given
+array_udiff(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_udiff(): Argument #2 ($arr2) must be of type array, object given
+array_udiff(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_udiff(): Argument #2 ($arr2) must be of type array, null given
index 70d8ab88c7e8fc52737f6499958c9335c6de6705..0c51526e01da5e727f51f4b3d55a19d233c4a0b3 100644 (file)
@@ -167,10 +167,10 @@ array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, string give
 array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, object given
+array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, object given
+array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_uintersect_assoc(): Argument #1 ($arr1) must be of type array, null given
index 6eb40634a8b22fa8353e3dbe61a003e934bde570..01f4959145698a408bece394f795ef6668cc3b9c 100644 (file)
@@ -167,10 +167,10 @@ array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, string give
 array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, object given
+array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, object given
+array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_uintersect_assoc(): Argument #2 ($arr2) must be of type array, null given
index 15ed8461d696555ae77490aa733aba3207483fe9..d61eccd05a1368c8903136afe044fd03b05d1898 100644 (file)
@@ -168,10 +168,10 @@ array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, string giv
 array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, object given
+array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_uintersect_uassoc(): Argument #1 ($arr1) must be of type array, null given
index 0e7aff3d23fb247c1196734acfb3948fd1ddfdee..e6af0887da0ede9c7c53317d22cc942ace59c77c 100644 (file)
@@ -168,10 +168,10 @@ array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, string giv
 array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, object given
+array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_uintersect_uassoc(): Argument #2 ($arr2) must be of type array, null given
index 4acf4b1d56dfc7c79edf6cdb48fe1c5f0bfd89b1..78b1f514ae58967ee4060a83d5256b510c0c8444 100644 (file)
@@ -167,10 +167,10 @@ array_uintersect(): Argument #1 ($arr1) must be of type array, string given
 array_uintersect(): Argument #1 ($arr1) must be of type array, string given
 
 --instance of classWithToString--
-array_uintersect(): Argument #1 ($arr1) must be of type array, object given
+array_uintersect(): Argument #1 ($arr1) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_uintersect(): Argument #1 ($arr1) must be of type array, object given
+array_uintersect(): Argument #1 ($arr1) must be of type array, classWithoutToString given
 
 --undefined var--
 array_uintersect(): Argument #1 ($arr1) must be of type array, null given
index ce2d3117029e2dab0b2ad0e490c519bcef57bad9..d9b926077986b86718b3f07e887d839b74085ef9 100644 (file)
@@ -167,10 +167,10 @@ array_uintersect(): Argument #2 ($arr2) must be of type array, string given
 array_uintersect(): Argument #2 ($arr2) must be of type array, string given
 
 --instance of classWithToString--
-array_uintersect(): Argument #2 ($arr2) must be of type array, object given
+array_uintersect(): Argument #2 ($arr2) must be of type array, classWithToString given
 
 --instance of classWithoutToString--
-array_uintersect(): Argument #2 ($arr2) must be of type array, object given
+array_uintersect(): Argument #2 ($arr2) must be of type array, classWithoutToString given
 
 --undefined var--
 array_uintersect(): Argument #2 ($arr2) must be of type array, null given
index 9ad8f7e2802956926a6961289f3b6b5b4b1bda71..2cfa6279cc35f601326e6f7dd21d7affc29e339c 100644 (file)
@@ -17,5 +17,5 @@ try {
 echo "Done\n";
 ?>
 --EXPECT--
-array_unique(): Argument #1 ($arg) must be of type array, object given
+array_unique(): Argument #1 ($arg) must be of type array, ArrayObject given
 Done
index 2e6bd0330ef8a1f5116f043234684435306f4ca7..e495b11b714b6bf4541b4fec9b13e960a5770790 100644 (file)
@@ -59,7 +59,7 @@ bool(true)
 bool(true)
 
 *** Testing objects with in_array() ***
-in_array(): Argument #2 ($haystack) must be of type array, object given
-in_array(): Argument #2 ($haystack) must be of type array, object given
+in_array(): Argument #2 ($haystack) must be of type array, in_array_check given
+in_array(): Argument #2 ($haystack) must be of type array, in_array_check given
 bool(true)
 Done
index d1e6dc269a407a2af2ab4a6d39568d1cf0dd7a2e..4360b915256d30757f144112dca96966c1caac7a 100644 (file)
@@ -35,7 +35,7 @@ var_dump(max(0, true, false, true));
 --EXPECT--
 max(): Argument #1 ($arg) must be of type array, int given
 max(): Argument #1 ($arg) must contain at least one element
-max(): Argument #1 ($arg) must be of type array, object given
+max(): Argument #1 ($arg) must be of type array, stdClass given
 int(2)
 float(2.11)
 string(1) "t"
index eac37be7ddac79ef01077271b5a9b97773bba8d1..ad32ae422692407fd2930df6b96ba92bcedb2a1f 100644 (file)
@@ -35,7 +35,7 @@ var_dump(min(0, true, false, true));
 --EXPECT--
 min(): Argument #1 ($arg) must be of type array, int given
 min(): Argument #1 ($arg) must contain at least one element
-min(): Argument #1 ($arg) must be of type array, object given
+min(): Argument #1 ($arg) must be of type array, stdClass given
 int(1)
 float(2.09)
 string(0) ""
index f6ebeba2efd426df3cf35f045dd454a90d4f10cb..9541c08bc23bdee0a745d9a21949ae59c6c47090 100644 (file)
@@ -123,7 +123,7 @@ abs(): Argument #1 ($number) must be of type int|float, string given
 abs(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 13 --
-abs(): Argument #1 ($number) must be of type int|float, object given
+abs(): Argument #1 ($number) must be of type int|float, classA given
 
 -- Iteration 14 --
 int(0)
index 4140738e0248a65869dc94143a75c7be9826cfc5..2a494ebcdf09ed2d8c8b92f90605147c3138acfe 100644 (file)
@@ -116,7 +116,7 @@ ceil(): Argument #1 ($number) must be of type int|float, string given
 ceil(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 13 --
-ceil(): Argument #1 ($number) must be of type int|float, object given
+ceil(): Argument #1 ($number) must be of type int|float, classA given
 
 -- Iteration 14 --
 float(0)
index f5b3e984618a130ea57c115318339bb732c9e26a..1679d23989dd90d2bc0b462bd07971ed732c77c9 100644 (file)
@@ -116,7 +116,7 @@ floor(): Argument #1 ($number) must be of type int|float, string given
 floor(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 13 --
-floor(): Argument #1 ($number) must be of type int|float, object given
+floor(): Argument #1 ($number) must be of type int|float, classA given
 
 -- Iteration 14 --
 float(0)
index f205c18a8364aacb2a3d54453f44d01e02c66f08..f7e5a5c9e295ac928a69acc5178e3ea37314dd4c 100644 (file)
@@ -174,7 +174,7 @@ Warning: A non-numeric value encountered in %s on line %d
 int(0)
 
 -- Iteration 23 --
-Unsupported operand types: object ** int
+Unsupported operand types: classA ** int
 
 -- Iteration 24 --
 int(0)
index 05cb9151ae1f70bd5443ad1e24dfe355128441b5..1743cf206a1a661ed89de794a72e4a5eaa4ae38c 100644 (file)
@@ -174,7 +174,7 @@ Warning: A non-numeric value encountered in %s on line %d
 int(0)
 
 -- Iteration 23 --
-Unsupported operand types: object ** int
+Unsupported operand types: classA ** int
 
 -- Iteration 24 --
 int(0)
index 5d106ed9d2e7b979f5f351500cfaf7795cec4d2c..e120abebe4dbda5abbb3326b4615fdca130eb394 100644 (file)
@@ -170,7 +170,7 @@ Warning: A non-numeric value encountered in %s on line %d
 float(1)
 
 -- Iteration 23 --
-Unsupported operand types: float ** object
+Unsupported operand types: float ** classA
 
 -- Iteration 24 --
 float(1)
index 5371d0fb94e37e51b9f82582441b38efbf033e83..43ad4deae7773baf38f7ba3e2f14c4d4d70befa7 100644 (file)
@@ -161,7 +161,7 @@ round(): Argument #1 ($number) must be of type int|float, string given
 round(): Argument #1 ($number) must be of type int|float, string given
 
 -- Iteration 23 --
-round(): Argument #1 ($number) must be of type int|float, object given
+round(): Argument #1 ($number) must be of type int|float, classA given
 
 -- Iteration 24 --
 float(0)
index 370b6162fde9e1fcdc53aba429f839baac26c39a..79607cacec0cdb4e26e87be0334c69097885724e 100644 (file)
@@ -24,4 +24,4 @@ $res = dns_get_record('php.net', DNS_MX, $auth, $additional);
 var_dump(!empty($res) && empty($additional));
 ?>
 --EXPECT--
-bool(false)
+bool(true)
index 3def367df080dfe0432e42343ec48969807d0b9a..0dc056ea34b216a1ca4e109fc15392a75d1fc03d 100644 (file)
@@ -40,6 +40,6 @@ password_hash() expects at least 2 parameters, 1 given
 
 Warning: Array to string conversion in %s on line %d
 password_hash(): Argument #2 ($algo) must be a valid password hashing algorithm
-password_hash(): Argument #3 ($options) must be of type array, object given
+password_hash(): Argument #3 ($options) must be of type array, stdClass given
 password_hash(): Argument #3 ($options) must be of type array, string given
 password_hash(): Argument #1 ($password) must be of type string, array given
index 37d9b64e1d93c5b516be0e1ad833c22bee935d2c..169b912cd918693f2b44de410e5c97c6f832df0c 100644 (file)
@@ -138,7 +138,7 @@ join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 15 --
 join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 16 --
-join(): Argument #2 ($pieces) must be of type array, object given
+join(): Argument #2 ($pieces) must be of type array, test given
 -- Iteration 17 --
 join(): Argument #2 ($pieces) must be of type array, string given
 -- Iteration 18 --
index 30892395fed2c846464cac18de52c1eeb1242cbc..40b526f1e3a4b9d357819bdad1315422f2a9343e 100644 (file)
@@ -161,7 +161,7 @@ vprintf(): Argument #2 ($args) must be of type array, string given
 vprintf(): Argument #2 ($args) must be of type array, string given
 
 -- Iteration 20 --
-vprintf(): Argument #2 ($args) must be of type array, object given
+vprintf(): Argument #2 ($args) must be of type array, sample given
 
 -- Iteration 21 --
 vprintf(): Argument #2 ($args) must be of type array, null given
index b576187c7a9a0422531d4fde658a67b882beb90e..783681009e7a8f6b3a15c5e8fe4d3e9f348c5713 100644 (file)
@@ -123,7 +123,7 @@ PHPDBG_INFO(constants) /* {{{ */
                "address=\"%p\" refcount=\"%d\" type=\"%s\" name=\"%.*s\" " attrs, \
                "%-18p %-7d %-9s %.*s" msg, &data->value, \
                Z_REFCOUNTED(data->value) ? Z_REFCOUNT(data->value) : 1, \
-               zend_zval_type_name(&data->value), \
+               zend_get_type_by_const(Z_TYPE(data->value)), \
                (int) ZSTR_LEN(data->name), ZSTR_VAL(data->name), ##__VA_ARGS__)
 
                        switch (Z_TYPE(data->value)) {
@@ -231,7 +231,7 @@ static int phpdbg_print_symbols(zend_bool show_globals) {
 #define VARIABLEINFO(attrs, msg, ...) \
        phpdbg_writeln("variable", \
                "address=\"%p\" refcount=\"%d\" type=\"%s\" refstatus=\"%s\" name=\"%.*s\" " attrs, \
-               "%-18p %-7d %-9s %s$%.*s" msg, data, Z_REFCOUNTED_P(data) ? Z_REFCOUNT_P(data) : 1, zend_zval_type_name(data), isref, (int) ZSTR_LEN(var), ZSTR_VAL(var), ##__VA_ARGS__)
+               "%-18p %-7d %-9s %s$%.*s" msg, data, Z_REFCOUNTED_P(data) ? Z_REFCOUNT_P(data) : 1, zend_get_type_by_const(Z_TYPE_P(data)), isref, (int) ZSTR_LEN(var), ZSTR_VAL(var), ##__VA_ARGS__)
 retry_switch:
                                switch (Z_TYPE_P(data)) {
                                        case IS_RESOURCE:
index 62791bf84e6b788f46517df86c572954212c6cc4..abf41f97cdacad8c80abd334874e481a9c330891 100644 (file)
@@ -131,5 +131,5 @@ Converted
 object(test3)#2 (0) {
 }
 test3::__toString()
-Return value of test3::__toString() must be of type string, array returned
+test3::__toString(): Return value must be of type string, array returned
 ====DONE====
index e07a7b21217eb975a6ba4594ad1d40396ecb1b04..48ac2770ddf98e0c49d5a0702244392bde959a45 100644 (file)
@@ -53,7 +53,7 @@ try {
 --EXPECT--
 Object with no __toString():
 Try 1:
-printf(): Argument #1 ($format) must be of type string, object given
+printf(): Argument #1 ($format) must be of type string, stdClass given
 
 
 Try 2:
@@ -62,8 +62,8 @@ Object of class stdClass could not be converted to string
 
 Object with bad __toString():
 Try 1:
-Return value of badToString::__toString() must be of type string, array returned
+badToString::__toString(): Return value must be of type string, array returned
 
 
 Try 2:
-Return value of badToString::__toString() must be of type string, array returned
+badToString::__toString(): Return value must be of type string, array returned