Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Apr 1, 2022

on my way working thru the psalm stubs with conditional types.

found this one, which doesn't need a conditional type on phpstan-side

https://phpstan.org/r/41c8a989-5c2d-4588-8186-3029085c1d4b
https://3v4l.org/WPkcQ

inspired by psalm stub

https://github.com/vimeo/psalm/blob/c209c66263ab24b04e5034d7160befc55af8d610/stubs/CoreGenericFunctions.phpstub#L493

@ondrejmirtes ondrejmirtes merged commit 325abf4 into phpstan:1.5.x Apr 2, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the getenv branch April 2, 2022 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants