Skip to content

Conversation

@justlevine
Copy link
Contributor

What

This PR removes unnecessary and conflicting PHPCS rules regarding Type Hints and signatures.

Why

Part of #13

I was over optimistic at seeing them used in WordPress/performance , but as it's getting in the way there's no need to include them.

What's important can be caught in code review or in follow up PRs before merge.

@codecov
Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (trunk@7cf8bb6). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             trunk      #15   +/-   ##
========================================
  Coverage         ?   90.64%           
  Complexity       ?      102           
========================================
  Files            ?        7           
  Lines            ?      556           
  Branches         ?        0           
========================================
  Hits             ?      504           
  Misses           ?       52           
  Partials         ?        0           
Flag Coverage Δ
unit 90.64% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to start with less strict rules.

@gziolo gziolo enabled auto-merge (squash) August 14, 2025 14:02
@gziolo
Copy link
Member

gziolo commented Aug 14, 2025

All checks are required now. I enabled auto-merge 🎉

@gziolo gziolo merged commit 9806cae into WordPress:trunk Aug 14, 2025
21 checks passed
@gziolo gziolo added [Type] Bug Something isn't working [Tool] Issues related to development tooling, such as linting, testing, or CI labels Aug 14, 2025
@justlevine justlevine deleted the tools/remove-phpcs-typehints branch August 14, 2025 14:05
@justlevine
Copy link
Contributor Author

I enabled auto-merge 🎉

Love that we can but ps this makes me want to prefix/namespace even more 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Tool] Issues related to development tooling, such as linting, testing, or CI [Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants