This is your reminder that testing (unit or behavioral) and static analysis (phpstan or psalm) are worth the time to put into place and automate.
Even if it doesn't start out all green, you can work your way there as you refactor code.
Open source. Open community. We are dedicated to building and enriching the PHP community.