Skip to content

Instantly share code, notes, and snippets.

@hmic
Created February 2, 2018 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmic/793fd42ea8c68f8ed6339497e9989830 to your computer and use it in GitHub Desktop.
Save hmic/793fd42ea8c68f8ed6339497e9989830 to your computer and use it in GitHub Desktop.
$registry->normalizeArray() broken
<?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