Skip to content

Commit 20c78bd

Browse files
committed
phpstan l0 done
1 parent b553779 commit 20c78bd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

packages/prompts/src/Filament/Components/RunCommandComponent.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Filament\Forms\Components\TextInput;
1111
use Filament\Forms\Concerns\InteractsWithForms;
1212
use Filament\Forms\Contracts\HasForms;
13+
use Illuminate\Support\Facades\Log;
1314
use Illuminate\Support\Facades\Validator;
1415
use Livewire\Component;
1516
use Moox\Prompts\Support\PromptFlowRunner;
@@ -784,7 +785,7 @@ protected function hasAccessToFlow(\Moox\Prompts\Support\PromptFlowState $state)
784785
return $execution->createdBy->is($user);
785786
} catch (\Throwable $e) {
786787
// On error, deny access for security
787-
\Log::warning('Error checking flow access', [
788+
Log::warning('Error checking flow access', [
788789
'flow_id' => $state->flowId,
789790
'error' => $e->getMessage(),
790791
]);

packages/prompts/src/Support/PromptFlowRunner.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Console\OutputStyle;
66
use Illuminate\Contracts\Console\Kernel;
77
use Illuminate\Support\Facades\Auth;
8+
use Illuminate\Support\Facades\Log;
89
use Moox\Prompts\Models\CommandExecution;
910
use Symfony\Component\Console\Input\ArrayInput;
1011
use Symfony\Component\Console\Output\BufferedOutput;
@@ -160,7 +161,7 @@ protected function ensureExecutionExists(PromptFlowState $state, $command): void
160161
}
161162
} catch (\Throwable $e) {
162163
// Log error for debugging
163-
\Log::error('Failed to ensure command execution exists', [
164+
Log::error('Failed to ensure command execution exists', [
164165
'error' => $e->getMessage(),
165166
'flow_id' => $state->flowId ?? null,
166167
]);
@@ -201,7 +202,7 @@ protected function updateExecutionCompleted(PromptFlowState $state): void
201202
]);
202203
} catch (\Throwable $e) {
203204
// Log error for debugging
204-
\Log::error('Failed to update command execution as completed', [
205+
Log::error('Failed to update command execution as completed', [
205206
'error' => $e->getMessage(),
206207
'flow_id' => $state->flowId ?? null,
207208
]);
@@ -232,7 +233,7 @@ protected function updateExecutionFailed(PromptFlowState $state, Throwable $exce
232233
]);
233234
} catch (\Throwable $e) {
234235
// Log error for debugging
235-
\Log::error('Failed to update command execution as failed', [
236+
Log::error('Failed to update command execution as failed', [
236237
'error' => $e->getMessage(),
237238
'flow_id' => $state->flowId ?? null,
238239
]);

packages/prompts/src/Support/PromptFlowStateStore.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Moox\Prompts\Support;
44

55
use Illuminate\Contracts\Cache\Repository as CacheRepository;
6+
use Illuminate\Support\Facades\Log;
67
use Illuminate\Support\Str;
78

89
class PromptFlowStateStore
@@ -97,7 +98,7 @@ public function reset(string $flowId): void
9798
}
9899
} catch (\Throwable $e) {
99100
// Log error for debugging
100-
\Log::error('Failed to mark command execution as cancelled', [
101+
Log::error('Failed to mark command execution as cancelled', [
101102
'error' => $e->getMessage(),
102103
'flow_id' => $flowId,
103104
'trace' => $e->getTraceAsString(),

0 commit comments

Comments
 (0)