Skip to content

Commit

Permalink
Explict cast package name to string since it will be an object in som…
Browse files Browse the repository at this point in the history
…e cases
  • Loading branch information
jaapio committed Sep 24, 2018
1 parent 53c9d38 commit cb7b198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpDocumentor/Compiler/Pass/PackageTreeBuilder.php
Expand Up @@ -92,7 +92,7 @@ protected function addElementsOfTypeToPackage(ProjectDescriptor $project, array
// ensure consistency by trimming the slash prefix and then re-appending it.
$packageIndexName = '\\' . ltrim((string) $packageName, '\\');
if (!isset($project->getIndexes()->packages[$packageIndexName])) {
$this->createPackageDescriptorTree($project, $packageName);
$this->createPackageDescriptorTree($project, (string) $packageName);
}

/** @var PackageDescriptor $package */
Expand Down

0 comments on commit cb7b198

Please sign in to comment.