Conversation
b99915e to
820fe14
Compare
|
I'm breaking rector because they have multiple class extending the ObjectType like https://github.com/rectorphp/rector/blob/8e733dbcc4fe72493e533d354e195d77c7baee07/src/StaticTypeMapper/ValueObject/Type/FullyQualifiedObjectType.php#L15 Which rely on the ObjectType::equals method. And some rules from rector are relying on the fact that ObjectType::equals(FullyQualifiedObjectType) is true for instance. |
|
Yes, don't worry about it |
This reverts commit aa95f94.
@ondrejmirtes Does it means we prefer the "right" fix I do understand you prefer the |
|
TODO:
|
|
Yes, I prefer |
|
This pull request has been marked as ready for review. |
#5398 shows the behavior before
Closes phpstan/phpstan#3028
Closes phpstan/phpstan#14429
Closes phpstan/phpstan#5298
Failures:
nextra/orm https://github.com/phpstan/phpstan-src/actions/runs/23979232001/job/69941215879?pr=5399 => This seems justified to me, as proven by the non regression test added ; Prior to this fix we had an inconsistency in the error reported Add non regression test #5398
rector/downgrade https://github.com/phpstan/phpstan-src/actions/runs/23979232001/job/69941215795?pr=5399 => Explain by Fix ObjectType::equals #5399 (comment)
rector https://github.com/phpstan/phpstan-src/actions/runs/23979232001/job/69941215804?pr=5399 => Explain by Fix ObjectType::equals #5399 (comment)
rector/src https://github.com/phpstan/phpstan-src/actions/runs/23979232001/job/69941215874?pr=5399 => I think
'#Provide more specific return type "Iterator" over abstract one#'is reported because before,new ObjectType(Iterator)was equals tonew GenericObject(Iterator), which not now. I would say it need to be fix on rector codebaseI reported the issue on rector side rectorphp/rector#9729