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

PHP Alpha: public function causes invalid pattern #4262

Closed
1 of 3 tasks
dee-see opened this issue Nov 11, 2021 · 3 comments · Fixed by #4297
Closed
1 of 3 tasks

PHP Alpha: public function causes invalid pattern #4262

dee-see opened this issue Nov 11, 2021 · 3 comments · Fixed by #4297
Assignees
Labels

Comments

@dee-see
Copy link
Contributor

dee-see commented Nov 11, 2021

Describe the bug

Seems like having public in the pattern causes an error

To Reproduce

https://semgrep.dev/s/krg2

Expected behavior

It should work :)

Screenshots
If applicable, add screenshots to help explain your problem.

What is the priority of the bug to you?

  • P0: blocking your adoption of Semgrep or workflow
  • P1: important to fix or quite annoying
  • P2: regular bug that should get fixed

Environment
semgrep.dev

@aryx aryx self-assigned this Nov 12, 2021
@aryx aryx added the lang:php label Nov 12, 2021
@dee-see
Copy link
Contributor Author

dee-see commented Nov 13, 2021

Modified the snippet to include the opening PHP tag (my bad) but it still doesn't work

https://semgrep.dev/s/krg2

aryx added a commit to semgrep/pfff that referenced this issue Nov 17, 2021
This should help semgrep/semgrep#4262

test plan:
see related PR in semgrep
aryx added a commit that referenced this issue Nov 17, 2021
This closes #4262

test plan:
test file included
aryx added a commit that referenced this issue Nov 17, 2021
* [PHP] allow public method pattern for semgrep

This closes #4262

test plan:
test file included

* changelog
@aryx
Copy link
Collaborator

aryx commented Nov 17, 2021

Should work in the next release (or if you use develop).

@dee-see
Copy link
Contributor Author

dee-see commented Nov 17, 2021

Awesome, thanks!

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

Successfully merging a pull request may close this issue.

2 participants