Created
February 2, 2018 14:07
-
-
Save hmic/793fd42ea8c68f8ed6339497e9989830 to your computer and use it in GitHub Desktop.
$registry->normalizeArray() broken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$registry = $this->helpers(); | |
$helpers = $this->helpers; | |
pr($helpers); | |
/* | |
Array( | |
[CrudView] => Array( | |
[className] => App\View\Helper\CrudViewHelper | |
) | |
) | |
*/ | |
$helpers = $registry->normalizeArray($helpers); | |
pr($helpers); | |
/* | |
Array( | |
[CrudView] => Array( | |
[class] => CrudView | |
[config] => Array( | |
[className] => App\View\Helper\CrudViewHelper | |
) | |
) | |
) | |
*/ | |
$helpers = $registry->normalizeArray($helpers); | |
pr($helpers); | |
/* | |
Array( | |
[CrudView] => Array( | |
[class] => CrudView | |
[config] => Array( | |
[class] => CrudView | |
[config] => Array( | |
[className] => App\View\Helper\CrudViewHelper | |
) | |
) | |
) | |
) | |
*/ | |
$helpers = $registry->normalizeArray($helpers); | |
pr($helpers); | |
/* | |
Array( | |
[CrudView] => Array( | |
[class] => CrudView | |
[config] => Array( | |
[class] => CrudView | |
[config] => Array( | |
[class] => CrudView | |
[config] => Array( | |
[className] => App\View\Helper\CrudViewHelper | |
) | |
) | |
) | |
) | |
) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment