8000 [VarDumper] Notice: Undefined offset when dumping casted array from object with PHP7 · Issue #19356 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[VarDumper] Notice: Undefined offset when dumping casted array from object with PHP7  #19356
Closed
@tgabi333

Description

@tgabi333

I've got an Undefined offset notice here: https://github.com/symfony/symfony/blob/2.8/src/Symfony/Component/VarDumper/Cloner/VarCloner.php#L74

Simplest example:

        $obj = json_decode('{"1":1,"2":1}');
        $array = (array) $obj;
        dump($array);

Environment:

$ composer.phar show | grep symfony/symfony
symfony/symfony                      v2.8.8             The Symfony PHP framework
$ php -v
PHP 7.0.8-3+deb.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.8-3+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0