Skip to content

Commit 90c2dd6

Browse files
author
quentin.schmick
committed
Fixing phpstan issues
1 parent 12694cd commit 90c2dd6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Console/Commands/MakeRequestLogTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ public function generateMigrationProcessStamps(array $config): string
123123

124124
public function generatePrecisionValue(array $config): string
125125
{
126-
return (string) Arr::get($config, 'log_timestamp_precision', 3) ?? 3;
126+
return (string) (Arr::get($config, 'log_timestamp_precision', 3) ?? 3);
127127
}
128128
}

src/Models/RequestLogBaseModel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ protected static function boot()
4343

4444
public static function make(array $props) : static
4545
{
46+
/** @phpstan-ignore-next-line */
4647
return new static($props + ['occurred_at' => now()]);
4748
}
4849

4950
public static function makeFromGuzzle(Request $request) : static
5051
{
52+
/** @phpstan-ignore-next-line */
5153
$instance = new static();
5254
$instance->occurred_at = now();
5355
$instance->params = $request->getUri()->getQuery();

0 commit comments

Comments
 (0)