type-guard
Type Guard is a developing module under the Pinkary Project aimed at enhancing PHP type safety by refining variable types for precise analysis with PHPStan and Psalm. Its functions convert mixed and nullable variables to specific types like strings and arrays, ensuring minimal type information loss and reliable code. Compatible with PHP 8.2+, it can be smoothly added to projects via Composer. This tool is beneficial for developers focusing on strict type enforcement and high code standards in PHP.