From 3d7ac19824a622a316890371dd7260807092172e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 19 Dec 2024 14:32:18 +0800 Subject: [PATCH 1/2] Add `nullable_type_declarations` rule --- .styleci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.styleci.yml b/.styleci.yml index 215fbcfe..92888875 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,4 +1,6 @@ php: preset: laravel + enabled: + - nullable_type_declarations js: true css: true From c72fa14eac4f8198a6acbdbbfbc6880257834150 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 19 Dec 2024 06:32:34 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- src/ParallelSSH.php | 2 +- src/RemoteProcessor.php | 2 +- src/SSH.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ParallelSSH.php b/src/ParallelSSH.php index 86ea5bb4..cd582013 100644 --- a/src/ParallelSSH.php +++ b/src/ParallelSSH.php @@ -16,7 +16,7 @@ class ParallelSSH extends RemoteProcessor * @param \Closure|null $callback * @return int */ - public function run(Task $task, Closure $callback = null) + public function run(Task $task, ?Closure $callback = null) { $processes = []; diff --git a/src/RemoteProcessor.php b/src/RemoteProcessor.php index 9980bebe..68d028dc 100644 --- a/src/RemoteProcessor.php +++ b/src/RemoteProcessor.php @@ -17,7 +17,7 @@ abstract class RemoteProcessor * @param \Closure|null $callback * @return int */ - abstract public function run(Task $task, Closure $callback = null); + abstract public function run(Task $task, ?Closure $callback = null); /** * Run the given script on the given host. diff --git a/src/SSH.php b/src/SSH.php index 09ff2dfb..1729c2c9 100644 --- a/src/SSH.php +++ b/src/SSH.php @@ -15,7 +15,7 @@ class SSH extends RemoteProcessor * @param \Closure|null $callback * @return int */ - public function run(Task $task, Closure $callback = null) + public function run(Task $task, ?Closure $callback = null) { $processes = [];