class-string|string
type is not simplified to string
#5607
Labels
Milestone
class-string|string
type is not simplified to string
#5607
Bug report
Starting with the latest phpstan release the following fix is needed: https://github.com/atk4/ui/pull/1657/files
But I belive it is wrong as
class-string|string
type should be simplified tostring
as before.Also, as shown in the code snippet below, it is still/correctly simplified when declared as phpdoc.
Code snippet that reproduces the problem
https://phpstan.org/r/7757dd83-d27f-4978-88fc-ff5dea43fcc8
https://github.com/atk4/ui/actions
Expected output
The text was updated successfully, but these errors were encountered: