### Bug report we loose the list type after overwriting the last element via offset overwrite. ### Code snippet that reproduces the problem https://phpstan.org/r/cc72d62d-05ff-40e2-b156-1bb5d49d54dd ### Expected output no errors ### Did PHPStan help you today? Did it make you happy in any way? _No response_
Activity
Preserve list type when overwriting existing elements via count()-1, …
Preserve list type when overwriting existing elements via count()-1, …
Fix phpstan/phpstan#14245: list lost after overwriting last element (#…
phpstan-bot commentedon Mar 10, 2026
Closed via merging phpstan/phpstan-src#5169
Updated PHPStan to commit 050e6bffb82c6c3a15cb20e73ce79d9c656b096e
Updated PHPStan to commit 449d993d43b79ecbfd2f96ff3e9ca1e68dcc954d
Fix phpstan/phpstan#14245: list lost after overwriting last element (p…
github-actions commentedon Apr 11, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.