phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository.

Results 408 phpstan-src issues
Sort by recently updated
recently updated
newest added

I used rector to transform the test. I think its way more readable to have a single `yield` per test-case instead of a huge `return [[], [], []]` in which...

Resolves https://github.com/phpstan/phpstan/issues/13693 Difference in days might behave differently when the DateInterval is created from scratch or from a diff. Extend returned type information for DateInterval::format method

analog https://github.com/phpstan/phpstan-src/pull/4440 but for `isset($arr[$i])` closes https://github.com/phpstan/phpstan/issues/13674

There are two PHPStan rules relating to use of the `#[\Override]` attribute on methods: 1. `method.missingOverride` which detects when a method overrides another but is missing the `#[\Override]` attribute. This...

Closes https://github.com/phpstan/phpstan/issues/7912 Closes https://github.com/phpstan/phpstan/issues/9384 Closes https://github.com/phpstan/phpstan-src/pull/2441

I'd like to know your opinion on this approach before I go too far with it. It's a follow up to [this comment](https://github.com/phpstan/phpstan-src/pull/4349#discussion_r2381919959) (specifically the part about disabling "{$bool}" etc...

Closes https://github.com/phpstan/phpstan/issues/13573

`hrtime(true)` always returns positive-int. `hrtime(false)` returns an array of `[second, nanosecond]`, where second is positive-int and nanosecond is between 0 and 10⁹-1 (because 10⁹ nanosecond = 1 second) ## Another...