Skip to content

Ensure the closing paren of control structures are followed by a space - #3

Merged
borkweb merged 1 commit into
masterfrom
feature/sniff-for-space-after-paren
Nov 6, 2015
Merged

Ensure the closing paren of control structures are followed by a space#3
borkweb merged 1 commit into
masterfrom
feature/sniff-for-space-after-paren

Conversation

@borkweb

@borkweb borkweb commented Nov 6, 2015

Copy link
Copy Markdown
Contributor

This is a long awaited tweak that sniffs out ){ and tells you to change it to ) {

@borkweb borkweb added the code review Status: requires a code review. label Nov 6, 2015
@barryhughes barryhughes added merge Status: ready to merge. and removed code review Status: requires a code review. labels Nov 6, 2015
@barryhughes

Copy link
Copy Markdown

At last!

borkweb added a commit that referenced this pull request Nov 6, 2015
…paren

Ensure the closing paren of control structures are followed by a space
@borkweb
borkweb merged commit 53dd70c into master Nov 6, 2015
@borkweb
borkweb deleted the feature/sniff-for-space-after-paren branch November 6, 2015 20:23
d4mation added a commit that referenced this pull request Jul 24, 2026
- Filters (any prefix, first-party or not) must now be fully type-less on every parameter and the return type, not just non-first-party hooks
- A real WPML fatal (TypeError: filter_has_access(): Argument #3 $user_id must be of type int, null given) showed that even first-party filter context arguments are unsafe: core dispatches apply_filters( 'sfwd_lms_has_access', true, 28, null )
- First-party actions remain unrestricted; non-first-party actions unchanged (params type-less, void return allowed)
- Sniff now resolves the old-style [ &$this, 'method' ] callback idiom
- Update sniff + PHPStan rule fixtures/tests and the README enforcement matrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge Status: ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants