Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use .php extension for stubfiles #2934

Merged
merged 2 commits into from Sep 18, 2023

Conversation

justlevine
Copy link
Collaborator

What does this implement/fix? Explain your changes.

This PR switches our PHPStan stubfiles to use the .php extension instead of .stub. This allows for out-of-the-box IDE typehinting, as most scanners are not configured to recognize .stub files as PHP, such as PHP Intelephense.

Additionally, PHPStan has been updated to its latest version (patch).

Before

image

After

image

Does this close any currently open issues?

Any relevant logs, error output, GraphiQL screenshots, etc?

Any other comments?

Where has this been tested?

Operating System: Ubuntu 20.04 (wsl2 + devilbox + php 8.1.14)

WordPress Version: n/a

@codeclimate
Copy link

codeclimate bot commented Sep 17, 2023

Code Climate has analyzed commit af1532f and detected 0 issues on this pull request.

View more on Code Climate.

@justlevine justlevine added Status: In Review Needs to be reviewed by a project maintainer before merge scope: build scripts Affects build scripts, CI workflows, and automation. Type: Chore (updating CI tasks etc; no production code change) labels Sep 17, 2023
@justlevine justlevine changed the title chore: use .php extensions for stubfiles chore: use .php extension for stubfiles Sep 17, 2023
@coveralls
Copy link

Coverage Status

coverage: 84.558%. remained the same when pulling af1532f on justlevine:chore/php-stubfiles into 4050581 on wp-graphql:develop.

@jasonbahl jasonbahl merged commit 7bec284 into wp-graphql:develop Sep 18, 2023
28 checks passed
@justlevine justlevine deleted the chore/php-stubfiles branch September 18, 2023 20:12
@jasonbahl jasonbahl mentioned this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: build scripts Affects build scripts, CI workflows, and automation. Status: In Review Needs to be reviewed by a project maintainer before merge Type: Chore (updating CI tasks etc; no production code change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants