1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/SplDoublyLinkedList_offsetGet_param_array.phpt
Máté Kocsis f7fbc6333f Add more precise type info for stubs
Closes GH-6005
2020-09-01 16:35:56 +02:00

19 lines
423 B
PHP

--TEST--
SplDoublyLinkedList::offsetGet() with 1st parameter passed as array.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php
$array = new SplDoublyLinkedList( );
$get = $array->offsetGet( array( 'fail' ) );
?>
--EXPECTF--
Fatal error: Uncaught TypeError: SplDoublyLinkedList::offsetGet(): Argument #1 ($index) must be of type int, array given in %s
Stack trace:
#0 %s
#1 {main}
thrown in %s on line %d