Description
To improve code quality and maintainability, we should add basic testing and static analysis tools to the project. This will help catch potential issues early and enforce best coding practices.
Suggested Improvements
Static Analysis with PHPStan
Add PHPStan to check for type safety and potential bugs.
Recommended level:min
PHP Linting
Use php -l or PHP_CodeSniffer to enforce code style.
Define a coding standard (e.g., PSR-12).
Description
To improve code quality and maintainability, we should add basic testing and static analysis tools to the project. This will help catch potential issues early and enforce best coding practices.
Suggested Improvements
Static Analysis with PHPStan
Add PHPStan to check for type safety and potential bugs.
Recommended level:min
PHP Linting
Use php -l or PHP_CodeSniffer to enforce code style.
Define a coding standard (e.g., PSR-12).