Skip to content

Fix intersection type annotations #3459

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

Closed

Conversation

simPod
Copy link

@simPod simPod commented Oct 25, 2021

#2919 got stale so I rebased it and fixed

@simPod simPod force-pushed the hotfix-intersection-annotations branch 3 times, most recently from 9b54895 to 5aca79e Compare October 25, 2021 09:26
@@ -103,7 +103,6 @@ public function getErrorList()
792 => 1,
794 => 1,
797 => 1,
801 => 1,
Copy link
Author

Choose a reason for hiding this comment

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

This reported

Type hint "bar" missing for (Squiz.Commenting.FunctionComment.TypeHintMissing)

for

/**
 * Function comment.
 *
 * @param $bar
 *   Comment here.
 * @param ...
 *   Additional arguments here.
 *
 * @return
 *   Return value
 *
 */
function foo($bar) {
}

seems like a bug in test so I removed it

@simPod simPod force-pushed the hotfix-intersection-annotations branch 2 times, most recently from 2bc3637 to 23c0d92 Compare October 25, 2021 09:44
@simPod simPod force-pushed the hotfix-intersection-annotations branch from 23c0d92 to 5aa4ee6 Compare November 15, 2021 22:51
@simPod simPod force-pushed the hotfix-intersection-annotations branch 2 times, most recently from 14ed8cf to 10e6e2e Compare January 13, 2022 11:13
@simPod
Copy link
Author

simPod commented Jan 13, 2022

@gsherwood Hi, just rebased and resolved conflicts for the second time. Should I pursue this?

@simPod simPod force-pushed the hotfix-intersection-annotations branch from 10e6e2e to 6567e47 Compare February 16, 2022 08:32
@klausi
Copy link
Contributor

klausi commented Apr 28, 2023

Thanks a lot, copied your regex to the FunctionCommentSniff we use in Drupal's Coder https://www.drupal.org/project/coder/issues/3303625

@rodrigoprimo
Copy link

As PHPCSStandards/PHP_CodeSniffer#944 was merged into the new repository, I believe this PR can be closed.

@jrfnl jrfnl closed this Jun 25, 2025
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.

None yet

5 participants