Skip to content

Commit

Permalink
Paths should always be made of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Apr 18, 2019
1 parent c493e8c commit e2c9e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected static function _componentManager($fullClass, Dispatch $dispatch = nul
}
$class = str_replace($maxPrefix, $maxAlias, $class);
$parts = explode('\\', $class);
array_unshift($parts, count($parts));
array_unshift($parts, (string)count($parts));

$manager = new static(self::MAP_COMPONENT, $parts, $options);
$manager->_componentPath = $dispatch->componentClassResourcePath($fullClass);
Expand Down

0 comments on commit e2c9e5f

Please sign in to comment.