Skip to content

Commit

Permalink
Replace implicit nullable types in parameter declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij committed Dec 16, 2024
1 parent 948352a commit 61eff1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/Console/Commands/Traits/PrettyCommandOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function box($header, $color = 'green')
*
* @return void
*/
public function listChoice(string $question, array $options, string $default = 'no', string $hint = null)
public function listChoice(string $question, array $options, string $default = 'no', ?string $hint = null)
{
foreach ($options as $key => $option) {
$value = $key + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/Auth/PasswordBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PasswordBroker extends OriginalPasswordBroker
* @param array $credentials
* @return string
*/
public function sendResetLink(array $credentials, Closure $callback = null)
public function sendResetLink(array $credentials, ?Closure $callback = null)
{
// First we will check to see if we found a user at the given credentials and
// if we did not we will redirect back to this current URI with a piece of
Expand Down
4 changes: 2 additions & 2 deletions src/app/Library/Database/DatabaseSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function getForTable(string $table, string $connection)
return self::$schema[$connection][$table] ?? null;
}

public static function getTables(string $connection = null): array
public static function getTables(?string $connection = null): array
{
$connection = $connection ?: config('database.default');

Expand Down Expand Up @@ -53,7 +53,7 @@ public function listTableIndexes(string $connection, string $table)
return self::getIndexColumnNames($connection, $table);
}

public function getManager(string $connection = null)
public function getManager(?string $connection = null)
{
$connection = $connection ?: config('database.default');

Expand Down

0 comments on commit 61eff1b

Please sign in to comment.