Skip to content

Commit

Permalink
filter exception stack trace to keep it same in dump and test
Browse files Browse the repository at this point in the history
  • Loading branch information
schlndh committed Nov 4, 2023
1 parent ebc5ea3 commit 9c4f33e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use function file_get_contents;
use function file_put_contents;
use function floor;
use function get_class;
use function get_declared_classes;
use function get_defined_functions;
use function getenv;
Expand Down Expand Up @@ -91,7 +92,24 @@ private static function generateSymbolDescription(string $symbol): string
throw $e;
}

return "Generating symbol description failed:\n" . ((string) $e) . "\n";
$result = "Generating symbol description failed:\n"
. get_class($e) . ': ' . $e->getMessage() . ' in ' . $e->getFile() . ':' . $e->getLine() . "\n"
. "Stack trace:\n";
$i = 0;

foreach ($e->getTrace() as $trace) {
// The rest differs between dump and test - skip it.
if ($trace['class'] === self::class && $trace['function'] === __FUNCTION__) {

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.1)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 102 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.
break;
}

$result .= $i . '# ' . $trace['file'] . '(' . $trace['line'] . '): ' . $trace['class'] . $trace['type']

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.1)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.1)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.1)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.1)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Offset 'class' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Offset 'file' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Offset 'line' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.

Check failure on line 106 in tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Offset 'type' might not exist on array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: array, object?: object}.
. $trace['function'] . "()\n";

$i++;
}

return $result;
}
}

Expand Down

0 comments on commit 9c4f33e

Please sign in to comment.