@@ -16,7 +16,7 @@ class GitRepository
1616 * @param string $repository
1717 * @throws GitException
1818 */
19- public function __construct ($ repository , IRunner $ runner = NULL )
19+ public function __construct ($ repository , ? IRunner $ runner = NULL )
2020 {
2121 if (basename ($ repository ) === '.git ' ) {
2222 $ repository = dirname ($ repository );
@@ -466,7 +466,7 @@ public function hasChanges()
466466 * @return static
467467 * @throws GitException
468468 */
469- public function pull ($ remote = NULL , array $ options = NULL )
469+ public function pull ($ remote = NULL , ? array $ options = NULL )
470470 {
471471 $ this ->run ('pull ' , $ options , '--end-of-options ' , $ remote );
472472 return $ this ;
@@ -480,7 +480,7 @@ public function pull($remote = NULL, array $options = NULL)
480480 * @return static
481481 * @throws GitException
482482 */
483- public function push ($ remote = NULL , array $ options = NULL )
483+ public function push ($ remote = NULL , ? array $ options = NULL )
484484 {
485485 $ this ->run ('push ' , $ options , '--end-of-options ' , $ remote );
486486 return $ this ;
@@ -494,7 +494,7 @@ public function push($remote = NULL, array $options = NULL)
494494 * @return static
495495 * @throws GitException
496496 */
497- public function fetch ($ remote = NULL , array $ options = NULL )
497+ public function fetch ($ remote = NULL , ? array $ options = NULL )
498498 {
499499 $ this ->run ('fetch ' , $ options , '--end-of-options ' , $ remote );
500500 return $ this ;
@@ -509,7 +509,7 @@ public function fetch($remote = NULL, array $options = NULL)
509509 * @return static
510510 * @throws GitException
511511 */
512- public function addRemote ($ name , $ url , array $ options = NULL )
512+ public function addRemote ($ name , $ url , ? array $ options = NULL )
513513 {
514514 $ this ->run ('remote ' , 'add ' , $ options , '--end-of-options ' , $ name , $ url );
515515 return $ this ;
@@ -551,7 +551,7 @@ public function removeRemote($name)
551551 * @return static
552552 * @throws GitException
553553 */
554- public function setRemoteUrl ($ name , $ url , array $ options = NULL )
554+ public function setRemoteUrl ($ name , $ url , ? array $ options = NULL )
555555 {
556556 $ this ->run ('remote ' , 'set-url ' , $ options , '--end-of-options ' , $ name , $ url );
557557 return $ this ;
@@ -593,7 +593,7 @@ public function run(...$args)
593593 * @return string[]|NULL
594594 * @throws GitException
595595 */
596- protected function extractFromCommand (array $ args , callable $ filter = NULL )
596+ protected function extractFromCommand (array $ args , ? callable $ filter = NULL )
597597 {
598598 $ result = $ this ->run (...$ args );
599599 $ output = $ result ->getOutput ();
0 commit comments