Markus Staab

Results 1115 comments of Markus Staab
trafficstars

PHPStan already contains a [regex AST parser](https://github.com/hoaproject/Regex), which could be used for a even more precise typing

Removing false was discussed in the past in some issue somewhere. A valid regex is not the only case where false is returned

@rabol please provide a snippet on phpstan.org/try which shows your case, otherwise we cannot judge whether its a bug or not.

@rabol the by-reference stuff is hard to figure out for PHPStan. you could give it a `/** @var list */` hint and the error goes away: https://phpstan.org/r/eb036b60-2ae9-4600-a41d-6e53e9d2458a

@alfredbez could you re-measure your use-case and write down numbers? The latest release contains improvements targeting your repro

@alfredbez nice to see this numbers. you might be interessted to tell your boss about my freetime performance work and a possible sponsorship https://github.com/sponsors/staabm thanks for considering ;-)

your particular case is not yet supported, but still you might enjoy https://github.com/staabm/phpstan-dba for more precise database access types

please provide a code example or at best a repo which shows the problem (since I never used blade and laravel, I need good reproducers to fix the problem at...

may I ask about the use-case? I guess you need this more precise return type for static analysis tools or similar?

> For Nextcloud sizes are mostly used for quota checks and storage space use estimation, so sizes being a few bit off on huge files should not be a problem....