Skip to content

Commit 8e061b2

Browse files
committed
GitRepository: method parameter $params renamed to $options
1 parent 8a84f69 commit 8e061b2

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/GitRepository.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@ public function renameFile($file, $to = NULL)
342342
* Commits changes
343343
* `git commit <params> -m <message>`
344344
* @param string $message
345-
* @param string[] $params param => value
345+
* @param array<mixed>|NULL $options
346346
* @throws GitException
347347
* @return static
348348
*/
349-
public function commit($message, $params = NULL)
349+
public function commit($message, $options = NULL)
350350
{
351-
$this->run('commit', $params, [
351+
$this->run('commit', $options, [
352352
'-m' => $message,
353353
]);
354354
return $this;
@@ -460,41 +460,41 @@ public function hasChanges()
460460
/**
461461
* Pull changes from a remote
462462
* @param string|NULL $remote
463-
* @param array<mixed>|NULL $params
463+
* @param array<mixed>|NULL $options
464464
* @return static
465465
* @throws GitException
466466
*/
467-
public function pull($remote = NULL, array $params = NULL)
467+
public function pull($remote = NULL, array $options = NULL)
468468
{
469-
$this->run('pull', $params, '--end-of-options', $remote);
469+
$this->run('pull', $options, '--end-of-options', $remote);
470470
return $this;
471471
}
472472

473473

474474
/**
475475
* Push changes to a remote
476476
* @param string|NULL $remote
477-
* @param array<mixed>|NULL $params
477+
* @param array<mixed>|NULL $options
478478
* @return static
479479
* @throws GitException
480480
*/
481-
public function push($remote = NULL, array $params = NULL)
481+
public function push($remote = NULL, array $options = NULL)
482482
{
483-
$this->run('push', $params, '--end-of-options', $remote);
483+
$this->run('push', $options, '--end-of-options', $remote);
484484
return $this;
485485
}
486486

487487

488488
/**
489489
* Run fetch command to get latest branches
490490
* @param string|NULL $remote
491-
* @param array<mixed>|NULL $params
491+
* @param array<mixed>|NULL $options
492492
* @return static
493493
* @throws GitException
494494
*/
495-
public function fetch($remote = NULL, array $params = NULL)
495+
public function fetch($remote = NULL, array $options = NULL)
496496
{
497-
$this->run('fetch', $params, '--end-of-options', $remote);
497+
$this->run('fetch', $options, '--end-of-options', $remote);
498498
return $this;
499499
}
500500

@@ -503,13 +503,13 @@ public function fetch($remote = NULL, array $params = NULL)
503503
* Adds new remote repository
504504
* @param string $name
505505
* @param string $url
506-
* @param array<mixed>|NULL $params
506+
* @param array<mixed>|NULL $options
507507
* @return static
508508
* @throws GitException
509509
*/
510-
public function addRemote($name, $url, array $params = NULL)
510+
public function addRemote($name, $url, array $options = NULL)
511511
{
512-
$this->run('remote', 'add', $params, '--end-of-options', $name, $url);
512+
$this->run('remote', 'add', $options, '--end-of-options', $name, $url);
513513
return $this;
514514
}
515515

@@ -545,13 +545,13 @@ public function removeRemote($name)
545545
* Changes remote repository URL
546546
* @param string $name
547547
* @param string $url
548-
* @param array<mixed>|NULL $params
548+
* @param array<mixed>|NULL $options
549549
* @return static
550550
* @throws GitException
551551
*/
552-
public function setRemoteUrl($name, $url, array $params = NULL)
552+
public function setRemoteUrl($name, $url, array $options = NULL)
553553
{
554-
$this->run('remote', 'set-url', $params, '--end-of-options', $name, $url);
554+
$this->run('remote', 'set-url', $options, '--end-of-options', $name, $url);
555555
return $this;
556556
}
557557

0 commit comments

Comments
 (0)