Skip to content

Commit f1704a3

Browse files
ondrejmirtesclaude
andcommitted
Re-tighten bug-7963 @phpstan-return on unsealed
The two-stage collapse merged from 2.1.x preserves the per-position record shape on unsealed too (the unsealed-types passes in reduceArrays absorb same-signature variants before the list-collapse, and the list-collapse now skips when every variant shares one signature). The earlier "Fix tests: bug-7963, bug-13978" commit's loosening of this @phpstan-return is therefore obsolete on unsealed — revert that one part to match the sealed form already on 2.2.x. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b927aff commit f1704a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/PHPStan/Analyser/data/bug-7963.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface FieldDescriptionInterface
3131
class HelloWorld
3232
{
3333
/**
34-
* @phpstan-return array<int, non-empty-list<mixed>>
34+
* @phpstan-return array<array{string, string, mixed, array<string, mixed>}>
3535
*/
3636
public function getRenderViewElementTests(): array
3737
{

0 commit comments

Comments
 (0)