Skip to content

Commit 52f2b20

Browse files
committed
Default value for jobs method and fixing bug in pipeline class
1 parent 0bd3cd4 commit 52f2b20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Gitlab/Model/Pipeline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function fromArray(Client $client, Project $project, array $data)
3232
{
3333
$pipeline = new static($project, $data['id'], $client);
3434

35-
return $job->hydrate($data);
35+
return $pipeline->hydrate($data);
3636
}
3737

3838
/**

lib/Gitlab/Model/Project.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ public function contributors()
10971097
* @param array $scopes
10981098
* @return Job[]
10991099
*/
1100-
public function jobs(array $scopes)
1100+
public function jobs(array $scopes = [])
11011101
{
11021102
$data = $this->api('jobs')->jobs($this->id, $scopes);
11031103

0 commit comments

Comments
 (0)