Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ private function handleException(\Throwable $exception): void
* @param string $file The filename the backtrace was raised in
* @param int $line The line number the backtrace was raised at
*
* @return array<int, mixed>
*
* @psalm-param list<StacktraceFrame> $backtrace
*
* @return array<int, mixed>
*/
private function cleanBacktraceFromErrorHandlerFrames(array $backtrace, string $file, int $line): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -892,12 +892,12 @@ public function setSdkMetadata(string $name, $data): self
/**
* Gets the SDK metadata.
*
* @return mixed
*
* @psalm-template T of string|null
*
* @psalm-param T $name
*
* @return mixed
*
* @psalm-return (T is string ? mixed : array<string, mixed>|null)
*/
public function getSdkMetadata(?string $name = null)
Expand Down
4 changes: 2 additions & 2 deletions src/FrameBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ private function isFrameInApp(string $file, ?string $functionName): bool
*
* @param array<string, mixed> $backtraceFrame The frame data
*
* @return array<string, mixed>
*
* @psalm-param StacktraceFrame $backtraceFrame
*
* @return array<string, mixed>
*/
private function getFunctionArguments(array $backtraceFrame): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Monolog/BreadcrumbHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ final class BreadcrumbHandler extends AbstractProcessingHandler
private $hub;

/**
* @phpstan-param int|string|Level|LogLevel::* $level
*
* @param HubInterface $hub The hub to which errors are reported
* @param int|string $level The minimum logging level at which this
* handler will be triggered
* @param bool $bubble Whether the messages that are handled can
* bubble up the stack or not
*
* @phpstan-param int|string|Level|LogLevel::* $level
*/
public function __construct(HubInterface $hub, $level = Logger::DEBUG, bool $bubble = true)
{
Expand Down
4 changes: 2 additions & 2 deletions src/State/HubInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ public function popScope(): bool;
*
* @param callable $callback The callback to be executed
*
* @return mixed|void The callback's return value, upon successful execution
*
* @psalm-template T
*
* @psalm-param callable(Scope): T $callback
*
* @return mixed|void The callback's return value, upon successful execution
*
* @psalm-return T
*/
public function withScope(callable $callback);
Expand Down
4 changes: 2 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ function configureScope(callable $callback): void
*
* @param callable $callback The callback to be executed
*
* @return mixed|void The callback's return value, upon successful execution
*
* @psalm-template T
*
* @psalm-param callable(Scope): T $callback
*
* @return mixed|void The callback's return value, upon successful execution
*
* @psalm-return T
*/
function withScope(callable $callback)
Expand Down