diff --git a/composer.lock b/composer.lock index fc9bda9..479ac80 100644 --- a/composer.lock +++ b/composer.lock @@ -2625,16 +2625,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.4.2", + "version": "1.4.6", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "1dd8f3e40bf7aa30031a75c65cece99220a161b8" + "reference": "8a7761f1c520e0dad6e04d862fdc697445457cfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1dd8f3e40bf7aa30031a75c65cece99220a161b8", - "reference": "1dd8f3e40bf7aa30031a75c65cece99220a161b8", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8a7761f1c520e0dad6e04d862fdc697445457cfe", + "reference": "8a7761f1c520e0dad6e04d862fdc697445457cfe", "shasum": "" }, "require": { @@ -2665,7 +2665,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.4.2" + "source": "https://github.com/phpstan/phpstan/tree/1.4.6" }, "funding": [ { @@ -2685,7 +2685,7 @@ "type": "tidelift" } ], - "time": "2022-01-18T16:09:11+00:00" + "time": "2022-02-06T12:56:13+00:00" }, { "name": "phpstan/phpstan-phpunit", diff --git a/src/Utility/Attribute.php b/src/Utility/Attribute.php index 80377d6..1e5ea22 100644 --- a/src/Utility/Attribute.php +++ b/src/Utility/Attribute.php @@ -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);