1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-30 04:29:03 +01:00

Remove short array syntax introduced in PHP 5.4

This commit is contained in:
Hayden Pierce 2018-09-03 16:36:05 -05:00
parent 46a1565cda
commit d1ffd7919f

View File

@ -38,7 +38,7 @@ class PSR4Namespace
public function countMatchingNamespaceSegments($namespace)
{
$namespaceFragments = explode('\\', $namespace);
$undefinedNamespaceFragments = [];
$undefinedNamespaceFragments = array();
while($namespaceFragments) {
$possibleNamespace = implode('\\', $namespaceFragments) . '\\';