Theodore Brown

Results 120 comments of Theodore Brown

I don't think it's necessary to explicitly mention this deprecated syntax in the standard. The code example for `switch` already shows the correct usage and is enforced by PSR/PER CS...

This is a big issue when attempting to upgrade a project to Psalm 6, since this option is enabled by default. https://psalm.dev/r/a7932278f5 Of course I could suppress all `InvalidOperand` errors,...

@kkmuffme No, this is not related to Psalm restarting the process, since in my test it is being restarted in both cases (just with `opcache.enable_cli=0` in the "JIT OFF" runs).

I tested disabling preloading (by commenting out the `Preloader::preload()` call at the end of `Psalm::restart()`). This does have a benefit, but not nearly as much as disabling the forced JIT...

Windows 11, 32 GB RAM, Intel Core Ultra 7 268V, PHP 8.4.15 x64 NTS.

I get the following results when scanning Psalm itself (average of 6 runs, +-300ms jitter between runs): | Configuration | Real time (seconds) | Improvement | |----------------------------------|---------------------|-------------| | JIT +...

I did the same test scanning Psalm itself on a different Windows 11 laptop, this one with a 13th gen Core i9-13900HX CPU and PHP 8.5.0 x64 NTS. Again I...

To compare performance on Linux, I installed Ubuntu 24.04 + PHP 8.5.0 on the above laptop (13th gen Core i9-13900HX CPU). By default Psalm scanned itself in 13 seconds using...

There also should be an easy way to ignore postinstall scripts for dependencies that aren't on a specific whitelist (also like Pnpm has). That way I could allow scripts for...

I encounter this issue so frequently when switching between branches/commits, that I can rarely run Psalm successfully without manually clearing the cache.