Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jul 22, 2023
1 parent 5d71307 commit 3c97d1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"strict": true
},
"no_superfluous_phpdoc_tags": false,
"php_unit_method_casing": false
"php_unit_method_casing": false,
"nullable_type_declaration_for_default_null_value": {
"use_nullable_type_declaration": true
}
}
}
2 changes: 1 addition & 1 deletion src/Exceptions/UnableToStartServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UnableToStartServer extends Exception
* @param int $code
* @param \Throwable|null $previous
*/
public function __construct($message = '', $code = 0, Throwable $previous = null)
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
{
$fullMessage = "A server is already running on {$message}. Please stop it before proceeding. \n".
"It is likely to be a php server, so you can search your existing processes for 'php -L'. \n".
Expand Down
8 changes: 4 additions & 4 deletions src/Foundation/Console/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ protected function phpunitArguments($options)
'phpunit.xml',
'phpunit.xml.dist',
])->map(fn ($file) => "{$workingPath}/{$file}")
->filter(fn ($file) => file_exists($file))
->first();
->filter(fn ($file) => file_exists($file))
->first();

return ! \is_null($file) ? array_merge(['-c', $file], $options) : $options;
}
Expand All @@ -92,8 +92,8 @@ protected function writeConfiguration()
'phpunit.xml',
'phpunit.xml.dist',
])->map(fn ($file) => "{$workingPath}/{$file}")
->filter(fn ($file) => file_exists($file))
->first();
->filter(fn ($file) => file_exists($file))
->first();

if (\is_null($file)) {
/** @phpstan-ignore-next-line */
Expand Down

0 comments on commit 3c97d1c

Please sign in to comment.