Skip to content

Change is_a($x, 'Foo') to $x instanceof Foo - #1651

Merged
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:instanceof
Sep 24, 2026
Merged

cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:instanceof

Conversation

@bpfoley

@bpfoley bpfoley commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

So PHPStan will warn class.notFound if Foo is renamed/removed

So PHPStan will warn class.notFound if Foo is renamed/removed
@cpeel
cpeel merged commit 8510668 into DistributedProofreaders:master Sep 24, 2026
12 checks passed
@bpfoley
bpfoley deleted the instanceof branch September 24, 2026 15:51
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.

2 participants