Skip to content

Add PHP inspection for valid return types#5

Open
timkelty wants to merge 1 commit intomasterfrom
feature/validate-return-types
Open

Add PHP inspection for valid return types#5
timkelty wants to merge 1 commit intomasterfrom
feature/validate-return-types

Conversation

@timkelty
Copy link

Without STRICT_TYPE_CHECKING, the following isn't a warning.

public function foo(): int
{
    return 'foo';
}

@timkelty timkelty requested a review from brandonkelly June 24, 2021 16:37
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.

1 participant