Skip to content

Commit

Permalink
fix: add phpstan params annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
IiiigorGG committed Jul 22, 2021
1 parent e133a83 commit efc3ef6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ phpunit.xml
/composer.lock
/.phpcs-cache

./node_modules
/node_modules/
5 changes: 4 additions & 1 deletion src/Monolog/Handler/MonologHandlerDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

use function Sentry\withScope;

/**
* @phpstan-import-type FormattedRecord from \Monolog\Handler\AbstractProcessingHandler
*/
class MonologHandlerDecorator extends AbstractProcessingHandler
{
private Handler $sentryHandler;
Expand All @@ -20,7 +23,7 @@ public function __construct(Handler $sentryHandler)
}

/**
* @param array<array> $record
* @phpstan-param FormattedRecord $record
*/
protected function write(array $record): void
{
Expand Down

0 comments on commit efc3ef6

Please sign in to comment.