Brad Miller

Results 66 comments of Brad Miller

This happened to me and was resolved by installing `python3-venv`

@mbpcoder this repo i believe is dead at this point, i would recommend looking into this alternative: https://github.com/spatie/image-optimizer

https://github.com/psliwa/image-optimizer/pull/80 i've added this pr which seems to work fine in php8.1 using symfony 6 components just waiting for the maintainer to merge it, although the repo seems like it's...

yeah there is the `spatie/image-optimizer` library that i've moved to instead of this one.

Phpstan is trying to protect you from a bad situation; the case where a developer calls the method on the abstract, which I believe is the right thing for it...

the coalesce operator does narrow types in phpstan, as shown by this playground: https://phpstan.org/r/e7364aaa-8930-4aa0-9348-d468ae4f4a17 if you pull in your example apart a bit, phpstan can understand it correctly: https://phpstan.org/r/31f0378b-b09a-4886-a2aa-89ade524ab00 to...

this is an expected error, phpstan currently does not model control-flow, and instead models types as possibilities: https://phpstan.org/r/065d49fc-2255-4b25-8561-0e75302df96a you can see from output of `\PHPStan\dumpType()` that phpstan believes the `$collection`...

@CsabaNa this is an expected error. PHPStan cannot be sure that you aren't using a string like an array because you've told it it could be an array _or_ a...

no worries, can this issue be closed now @CsabaNa or is there something else?

@adnweedon a simple thing that has helped me begin debugging performance issues in the past is the `--debug` flag: https://phpstan.org/user-guide/command-line-usage#--debug this prints out each filepath as it is analysed, and...