-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Copy the regexes to the public interface #436
Conversation
@nickvergessen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @DeepDiver1975 and @tanghus to be potential reviewers |
👍 |
Wouldn't it be better to have an |
We have a method I would also only consider the name public api, not the actual value? |
Could this be done by an abstract constant? Is this possible? |
@@ -67,10 +67,20 @@ class Request implements \ArrayAccess, \Countable, IRequest { | |||
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent | |||
const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#'; | |||
const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#'; | |||
const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost)$/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is unrelated to your PR, but what about IPv6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open an ticket ;)
No, according to http://php.net/manual/en/language.oop5.interfaces.php:
|
I mean we could also add methods that then use |
👍 |
No description provided.