forrest79/phpstan-narrow-types (packagist): PHPStanNarrowTypes provides functionality to narrow complex array/list types with assert.
Keywords: array|type|list|PHPStan|narrow