Skip to content

Commit

Permalink
Merge branch 'release/v0.10.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Feb 7, 2025
2 parents 14bd634 + ba7e1f6 commit a0e6f02
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
extensions: "${{ env.PHP_EXTENSIONS }}"
ini-values: "post_max_size=256M"

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
php-version: "8.3"
extensions: "${{ env.PHP_EXTENSIONS }}"
ini-values: "post_max_size=256M"

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.10.7 (2025-02-07)
* Fixed implicit nullable arguments

## v0.10.6 (2024-10-19)
* Detect and strip quotes from arguments

Expand Down
2 changes: 1 addition & 1 deletion src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getRequest(): Request
public function addArgument(
string $name,
string $description,
callable $setup = null
?callable $setup = null
): static {
$this->values = null;
return parent::addArgument($name, $description, $setup);
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getHelp(): ?string
public function addArgument(
string $name,
string $description,
callable $setup = null
?callable $setup = null
): static {
if (isset($this->arguments[$name])) {
throw Exceptional::Logic(
Expand Down
4 changes: 2 additions & 2 deletions src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public function setRequest(
* @param array<string, string>|null $server
*/
public function newRequest(
array $argv = null,
array $server = null
?array $argv = null,
?array $server = null
): Request {
$server = $server ?? $_SERVER;
$args = $argv ?? $_SERVER['argv'] ?? [];
Expand Down
10 changes: 5 additions & 5 deletions src/Io/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ public function style(

public function ask(
string $message,
string $default = null,
?string $default = null,
?callable $validator = null
): ?string;

public function newQuestion(
string $message,
string $default = null,
?string $default = null,
?callable $validator = null
): Question;

Expand All @@ -228,16 +228,16 @@ public function newPasswordQuestion(

public function confirm(
string $message,
bool $default = null
?bool $default = null
): bool;

public function newConfirmation(
string $message,
bool $default = null
?bool $default = null
): Confirmation;

public function newSpinner(
string $style = null
?string $style = null
): Spinner;

public function newProgressBar(
Expand Down
8 changes: 4 additions & 4 deletions src/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function isWritable(): bool
*/
public function write(
?string $data,
int $length = null
?int $length = null
): int {
return $this->broker->write($data, $length);
}
Expand Down Expand Up @@ -332,7 +332,7 @@ public function isErrorWritable(): bool
*/
public function writeError(
?string $data,
int $length = null
?int $length = null
): int {
return $this->broker->writeError($data, $length);
}
Expand Down Expand Up @@ -1111,7 +1111,7 @@ public function newConfirmation(
* Show progress indicator
*/
public function newSpinner(
string $style = null
?string $style = null
): Spinner {
return new Spinner($this, $style);
}
Expand All @@ -1133,7 +1133,7 @@ public function newProgressBar(
*/
public static function stringToBoolean(
string $string,
bool $default = null
?bool $default = null
): ?bool {
switch ($string = strtolower(trim($string))) {
case 'false':
Expand Down
2 changes: 1 addition & 1 deletion src/Widget/Spinner.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Spinner
*/
public function __construct(
Session $session,
string $style = null
?string $style = null
) {
$this->session = $session;
$this->setStyle($style);
Expand Down

0 comments on commit a0e6f02

Please sign in to comment.