Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from dpi/dependabot/composer/phpstan/phpstan-1.4.6
Browse files Browse the repository at this point in the history
Bump phpstan/phpstan from 1.4.2 to 1.4.6
  • Loading branch information
dpi committed Feb 28, 2022
2 parents e568580 + 48ee03a commit c0303c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Utility/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ final class Attribute
*/
final public static function stack(string $attributeClassName, int $parents = 1)
{
/** @var array{function: string, line?: int, file?: string, class: class-string, type?: string, args?: array, object?: object} $caller */
$caller = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS)[$parents + 1];
$reflection = new \ReflectionMethod($caller['class'], $caller['function']);
$attributes = $reflection->getAttributes($attributeClassName);
Expand Down

0 comments on commit c0303c0

Please sign in to comment.