mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
ext/spl: Deprecate ArrayObject and ArrayIterator with objects (#19420)
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_arrayobject_and_arrayiterator_with_objects This also moves tests into a subfolder.
This commit is contained in:
committed by
GitHub
parent
9c754baa99
commit
fb87b14b6c
@@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
SPL: ArrayObject::offsetExists() should return true for element containing NULL
|
||||
--FILE--
|
||||
<?php
|
||||
$ao = new ArrayObject(array('foo' => null));
|
||||
var_dump($ao->offsetExists('foo'));
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
Reference in New Issue
Block a user