diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-11 13:35:44 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-22 11:39:52 +0200 |
commit | 0ba7c3eadf2683e4581079ea04b5b3019a5b6cce (patch) | |
tree | e106f17dfaa2216367cd77cad17d08574f01af6d /ext/spl | |
parent | b2ea507beab862a0167af6b99f44fe9c695ca4f0 (diff) | |
download | php-git-0ba7c3eadf2683e4581079ea04b5b3019a5b6cce.tar.gz |
Deprecate array_key_exists() on objects
Diffstat (limited to 'ext/spl')
-rw-r--r-- | ext/spl/tests/bug61347.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/spl/tests/bug61347.phpt b/ext/spl/tests/bug61347.phpt index f893b24527..410d65b7e9 100644 --- a/ext/spl/tests/bug61347.phpt +++ b/ext/spl/tests/bug61347.phpt @@ -22,13 +22,15 @@ var_dump(isset($b[37])); //true var_dump(isset($b['no_exists'])); //false var_dump(empty($b['b'])); //true var_dump(empty($b[37])); //true ---EXPECT-- +--EXPECTF-- bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) + +Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in %s on line %d bool(true) NULL bool(true) |