michabbb<p>🚀 PHPStan 2.0 Released: Enhanced Analysis and New Features 🐘</p><p>After three years of development, <a href="https://social.vivaldi.net/tags/PHPStan" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPStan</span></a> 2.0 is now available, introducing over 180 improvements to <a href="https://social.vivaldi.net/tags/StaticAnalysis" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>StaticAnalysis</span></a> for <a href="https://social.vivaldi.net/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> developers.</p><p>Highlights:</p><p>🔟 Level 10 Analysis</p><p>Provides stricter checks by treating all mixed types strictly.<br>Helps catch more potential issues in your <a href="https://social.vivaldi.net/tags/Codebase" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Codebase</span></a> by enforcing stricter <a href="https://social.vivaldi.net/tags/TypeSafety" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeSafety</span></a>.<br>📋 List Type Support</p><p>Introduces the list type for arrays with sequential integer keys starting at 0.<br>Enhances <a href="https://social.vivaldi.net/tags/TypeSafety" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeSafety</span></a> and clarity when working with lists in <a href="https://social.vivaldi.net/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a>.<br>⚡ Lower Memory Consumption</p><p>Optimizations reduce memory usage by 50–70%.<br>Leads to faster <a href="https://social.vivaldi.net/tags/Performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Performance</span></a> and less strain on your system during analysis.<br>✅ Validation of Inline <span class="h-card" translate="no"><a href="https://social.vivaldi.net/@var" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>var</span></a></span> Tags</p><p><a href="https://social.vivaldi.net/tags/PHPStan" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPStan</span></a> now validates inline <span class="h-card" translate="no"><a href="https://social.vivaldi.net/@var" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>var</span></a></span> <a href="https://social.vivaldi.net/tags/PHPDoc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPDoc</span></a> tags against the native type of the assigned expression.<br>Helps maintain accurate type annotations and catch inconsistencies, improving <a href="https://social.vivaldi.net/tags/CodeQuality" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CodeQuality</span></a>.<br>🧹 Reduced Caching and Disk Space Cleanup</p><p>Less reliance on caching without sacrificing performance.<br>Frees up disk space by cleaning up old cache items, aiding in <a href="https://social.vivaldi.net/tags/DiskSpaceManagement" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DiskSpaceManagement</span></a>.<br>For a detailed list of changes and a step-by-step upgrade guide, read the full release notes.</p><p>Read more: <a href="https://phpstan.org/blog/phpstan-2-0-released-level-10-elephpants" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpstan.org/blog/phpstan-2-0-r</span><span class="invisible">eleased-level-10-elephpants</span></a></p>