Skip to content
Snippets Groups Projects
Commit 561afea0 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix tests

parent 8c0aa169
No related branches found
No related tags found
1 merge request!11Merging develop into main
Pipeline #1389985 passed
lakedrops
......@@ -179,7 +179,7 @@ abstract class BaseHandler implements BaseHandlerInterface {
/**
* {@inheritdoc}
*/
public function git(string $command, string $path = NULL): void {
public function git(string $command, ?string $path = NULL): void {
Utils::git($command, $path);
}
......
......@@ -14,7 +14,7 @@ use Symfony\Component\Console\Input\InputInterface;
interface BaseHandlerInterface {
/**
* Provides the cofig Id.
* Provides the config Id.
*
* @return string
* The config Id.
......@@ -28,7 +28,7 @@ interface BaseHandlerInterface {
* The composer event.
*
* @return self
* This hanlder.
* This handler.
*/
public function setEvent(Event $event): BaseHandlerInterface;
......@@ -39,7 +39,7 @@ interface BaseHandlerInterface {
* The input handler.
*
* @return self
* This hanlder.
* This handler.
*/
public function setInput(InputInterface $input): BaseHandlerInterface;
......@@ -94,7 +94,7 @@ interface BaseHandlerInterface {
* @param string|null $path
* Optional path into which to chdir before executing command.
*/
public function git(string $command, string $path = NULL): void;
public function git(string $command, ?string $path = NULL): void;
/**
* Add the given pattern to gitignore if necessary.
......
......@@ -198,7 +198,7 @@ final class Dotenv {
* @param string $item
* String in which to replace environment variable placeholders.
* @param array $matches
* List of environment vairables to replace in the given string.
* List of environment variables to replace in the given string.
*
* @return string
* The string with replaced environment variables.
......
......@@ -3,7 +3,7 @@
namespace LakeDrops\Component\Composer;
/**
* Provides helper functions to deal with neted arrays.
* Provides helper functions to deal with nested arrays.
*
* @package LakeDrops\Docker4Drupal
*/
......
......@@ -38,7 +38,7 @@ final class Utils {
* @param string|null $path
* The optional path where to execute the git command.
*/
public static function git(string $command, string $path = NULL): void {
public static function git(string $command, ?string $path = NULL): void {
self::gitInit();
$prefix = $path === NULL ? '' : 'cd ' . $path . ' && ';
passthru($prefix . escapeshellcmd('git -c "user.email=composer@lakedrops.com" ' . $command));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment