Skip to content

Commit 4a5ed24

Browse files
authored
Apply PHP CS fixer changes (#1869)
1 parent f2fcab6 commit 4a5ed24

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@ private function handleException(\Throwable $exception): void
458458
* @param string $file The filename the backtrace was raised in
459459
* @param int $line The line number the backtrace was raised at
460460
*
461-
* @return array<int, mixed>
462-
*
463461
* @psalm-param list<StacktraceFrame> $backtrace
462+
*
463+
* @return array<int, mixed>
464464
*/
465465
private function cleanBacktraceFromErrorHandlerFrames(array $backtrace, string $file, int $line): array
466466
{

src/Event.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,12 +892,12 @@ public function setSdkMetadata(string $name, $data): self
892892
/**
893893
* Gets the SDK metadata.
894894
*
895-
* @return mixed
896-
*
897895
* @psalm-template T of string|null
898896
*
899897
* @psalm-param T $name
900898
*
899+
* @return mixed
900+
*
901901
* @psalm-return (T is string ? mixed : array<string, mixed>|null)
902902
*/
903903
public function getSdkMetadata(?string $name = null)

src/FrameBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ private function isFrameInApp(string $file, ?string $functionName): bool
158158
*
159159
* @param array<string, mixed> $backtraceFrame The frame data
160160
*
161-
* @return array<string, mixed>
162-
*
163161
* @psalm-param StacktraceFrame $backtraceFrame
162+
*
163+
* @return array<string, mixed>
164164
*/
165165
private function getFunctionArguments(array $backtraceFrame): array
166166
{

src/Monolog/BreadcrumbHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ final class BreadcrumbHandler extends AbstractProcessingHandler
2626
private $hub;
2727

2828
/**
29-
* @phpstan-param int|string|Level|LogLevel::* $level
30-
*
3129
* @param HubInterface $hub The hub to which errors are reported
3230
* @param int|string $level The minimum logging level at which this
3331
* handler will be triggered
3432
* @param bool $bubble Whether the messages that are handled can
3533
* bubble up the stack or not
34+
*
35+
* @phpstan-param int|string|Level|LogLevel::* $level
3636
*/
3737
public function __construct(HubInterface $hub, $level = Logger::DEBUG, bool $bubble = true)
3838
{

src/State/HubInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public function popScope(): bool;
5151
*
5252
* @param callable $callback The callback to be executed
5353
*
54-
* @return mixed|void The callback's return value, upon successful execution
55-
*
5654
* @psalm-template T
5755
*
5856
* @psalm-param callable(Scope): T $callback
5957
*
58+
* @return mixed|void The callback's return value, upon successful execution
59+
*
6060
* @psalm-return T
6161
*/
6262
public function withScope(callable $callback);

src/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ function configureScope(callable $callback): void
201201
*
202202
* @param callable $callback The callback to be executed
203203
*
204-
* @return mixed|void The callback's return value, upon successful execution
205-
*
206204
* @psalm-template T
207205
*
208206
* @psalm-param callable(Scope): T $callback
209207
*
208+
* @return mixed|void The callback's return value, upon successful execution
209+
*
210210
* @psalm-return T
211211
*/
212212
function withScope(callable $callback)

0 commit comments

Comments
 (0)