Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
netjan committed Aug 22, 2018
1 parent 26e3451 commit 321f871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Indexer.php
Expand Up @@ -147,7 +147,7 @@ public function index(): Promise
$packageKey = null;
$cacheKey = null;
$index = null;
foreach (array_merge($this->composerLock->packages, $this->composerLock->{'packages-dev'}) as $package) {
foreach (array_merge($this->composerLock->packages, (array)$this->composerLock->{'packages-dev'}) as $package) {
// Check if package name matches and version is absolute
// Dynamic constraints are not cached, because they can change every time
$packageVersion = ltrim($package->version, 'v');
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Workspace.php
Expand Up @@ -169,7 +169,7 @@ public function xdependencies(): array
return [];
}
$dependencyReferences = [];
foreach (array_merge($this->composerLock->packages, $this->composerLock->{'packages-dev'}) as $package) {
foreach (array_merge($this->composerLock->packages, (array)$this->composerLock->{'packages-dev'}) as $package) {
$dependencyReferences[] = new DependencyReference($package);
}
return $dependencyReferences;
Expand Down

0 comments on commit 321f871

Please sign in to comment.