Skip to content

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Sep 13, 2025

Hello!

Closes phpstan/phpstan#13511

By the time the getProperty() method is called, the $hasProperty has already been narrowed to maybe or it's been determined to be optional and overridden to yes. We should simply continue instead of returning no

Thanks!

@calebdw calebdw force-pushed the calebdw/push-mszlmotvuumk branch 2 times, most recently from 0c408b3 to bae03bd Compare September 13, 2025 01:44
@staabm
Copy link
Contributor

staabm commented Sep 13, 2025

don't get confused by the CI results.. we currently investigate spurious CI errors

@calebdw calebdw force-pushed the calebdw/push-mszlmotvuumk branch from bae03bd to d28fb04 Compare September 13, 2025 12:34
@calebdw calebdw force-pushed the calebdw/push-mszlmotvuumk branch from d28fb04 to 692b5be Compare September 13, 2025 12:35
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.

argument.type error reported when object doesn't have optional type
3 participants