@@ -556,7 +556,7 @@ private function trigger(TestMethod $test, bool $isUserland, string $errorString
556556 }
557557
558558 /**
559- * @param list<array{file? : string, line?: int, class ?: class- string, function ?: string, type?: string , args?: list<mixed>}> $trace
559+ * @param list<array{function : string, line?: int, file ?: string, class ?: class- string, type?: '->'|'::' , args?: list<mixed>, object?: object }> $trace
560560 */
561561 private function triggerForUserlandDeprecation (TestMethod $ test , string $ message , array $ trace ): IssueTrigger
562562 {
@@ -624,7 +624,7 @@ private function categorizeFileWithoutTest(string $file): Code
624624 }
625625
626626 /**
627- * @param list<array{file? : string, line?: int, class ?: class- string, function ?: string, type?: string , args?: list<mixed>}> $trace
627+ * @param list<array{function : string, line?: int, file ?: string, class ?: class- string, type?: '->'|'::' , args?: list<mixed>, object?: object }> $trace
628628 */
629629 private function triggerForUserlandDeprecationWithoutTest (string $ message , array $ trace ): IssueTrigger
630630 {
@@ -656,7 +656,7 @@ private function triggerForUserlandDeprecationWithoutTest(string $message, array
656656 }
657657
658658 /**
659- * @return list<array{file : string, line: int, class ?: string, function ?: string, type: string , args?: list<mixed>, object?: object}>
659+ * @return list<array{function : string, line? : int, file ?: string, class ?: class- string, type?: '->'|'::' , args?: list<mixed>, object?: object}>
660660 */
661661 private function filteredStackTrace (): array
662662 {
@@ -690,7 +690,7 @@ private function filteredStackTrace(): array
690690 }
691691
692692 /**
693- * @return ?array{file: non-empty- string, line: positive-int }
693+ * @return ?array{function: string, line?: int, file?: string, class?: class- string, type?: '->'|'::', args?: list<mixed>, object?: object }
694694 */
695695 private function guessDeprecationFrame (): ?array
696696 {
@@ -718,7 +718,7 @@ private function guessDeprecationFrame(): ?array
718718 }
719719
720720 /**
721- * @return list<array{file : string, line: ? int, class ?: class- string, function ?: string, type: string , args?: list<mixed>, object?: object}>
721+ * @return list<array{function : string, line?: int, file ?: string, class ?: class- string, type?: '->'|'::' , args?: list<mixed>, object?: object}>
722722 */
723723 private function errorStackTrace (bool $ ignoreArgs = true ): array
724724 {
@@ -738,17 +738,17 @@ private function errorStackTrace(bool $ignoreArgs = true): array
738738 }
739739
740740 /**
741- * @param array{class? : class-string, function ?: non-empty-string } $frame
742- * @param non-empty-string $function
741+ * @param array{function: string, line?: int, file?: string, class?: class -string, type ?: '->'|'::', args?: list<mixed>, object?: object } $frame
742+ * @param non-empty-string $function
743743 */
744744 private function frameIsFunction (array $ frame , string $ function ): bool
745745 {
746746 return !isset ($ frame ['class ' ]) && isset ($ frame ['function ' ]) && $ frame ['function ' ] === $ function ;
747747 }
748748
749749 /**
750- * @param array{class? : class-string, function ?: non-empty-string} $frame
751- * @param array{className: class-string, methodName: non-empty-string} $method
750+ * @param array{function: string, line?: int, file?: string, class?: class -string, type ?: '->'|'::', args?: list<mixed>, object?: object} $frame
751+ * @param array{className: class-string, methodName: non-empty-string} $method
752752 */
753753 private function frameIsMethod (array $ frame , array $ method ): bool
754754 {
@@ -758,9 +758,6 @@ private function frameIsMethod(array $frame, array $method): bool
758758 $ frame ['function ' ] === $ method ['methodName ' ];
759759 }
760760
761- /**
762- * @return non-empty-string
763- */
764761 private function stackTrace (): string
765762 {
766763 $ buffer = '' ;
0 commit comments