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

SlevomatCodingStandard.Exceptions.DeadCatch hangs for weird catch definition #155

Closed
VasekPurchart opened this issue May 4, 2017 · 4 comments

Comments

@VasekPurchart
Copy link
Contributor

I didn't know this was possible to write, but it actually works - omitting the whitespace between type definition and parameter name:

Minimal reproducible code:

<?php

try {

} catch (\Exception$e) {

}
@Majkl578
Copy link
Contributor

Majkl578 commented May 4, 2017

Same applies for parameters: https://3v4l.org/IFiun

@kukulich
Copy link
Contributor

kukulich commented May 4, 2017

Fixed in 2b197d0

@kukulich kukulich closed this as completed May 4, 2017
@kukulich
Copy link
Contributor

kukulich commented May 4, 2017

@Majkl578 I've just added some more tests, even for properties 033caca.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants