Skip to content

Commit

Permalink
FIX: wrong array initialization (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
devilcius committed Aug 1, 2018
1 parent 27e774c commit 8efa73f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lastfmapi/Api/ArtistApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getSimilar($methodVars)
$vars = array_merge($vars, $methodVars);

if ($call = $this->apiGetCall($vars)) {
$similar = '';
$similar = array();
$i = 0;
foreach ($call->similarartists->artist as $artist) {
$similar[$i]['name'] = (string) $artist->name;
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$file = __DIR__ . '../../vendor/autoload.php';
$file = __DIR__ . '/../vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies to run test suite. "php composer.phar install --dev"');
}
Expand Down

0 comments on commit 8efa73f

Please sign in to comment.