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

Fix intersection type annotations #3459

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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

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.

3 participants