Re: Feature request: https://github.com/php/php-src/issues/13301

From: Date: Thu, 08 Feb 2024 10:12:18 +0000
Subject: Re: Feature request: https://github.com/php/php-src/issues/13301
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-122343@lists.php.net to get a copy of this message
On Thu, Feb 8, 2024 at 6:25 PM Григорий Senior PHP / Разработчик Web <6562680@gmail.com> wrote: > > PHPStan is out the case. > May I know why is it out? I'm actively using it in my projects and it helps me a lot to not relax and write safe code. It also helps a lot in cleaning up legacy code. Sometimes I find places in the legacy code where the logic is too hard to understand in a reasonable amount of time, but they're rare. These places can be enveloped with additional logging with no problem. I'm referring to your initial use case about collecting errors and I'm suggesting a good tool to solve it. You may start from lower assertion levels in PHPStan and gradually increase the level to be not ruined by tons of errors at a time. Of course, I don't know your situation. But what I do in such cases - is explain to the business the problem and what steps are required to improve the situation. So the business is aware of it, the business should not have false impressions about the code and false expectations from me. Just prefer to be open and tell the truth. Not prefer to be a yes-man and promise speedy magic solutions. I'm a professional developer and if I'm asked to do some crappy coding regularly, I would prefer to leave such a job. My selling point is to produce high-quality well-architected code.

« previous php.internals (#122343) next »