-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
FQSEN constructor accepts only alphanumeric characters, but a lot more are allowed in PHP.
This makes parsing in ReflectionDocBlock fail with valid php class names.
From PHP Documentation:
A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: ^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$.
For example Option«T» is a valid Interface Name, but is not a valid FQSEN name.
In a library I am working on I need to handle this special chars, and to do so I committed a small patch to the regexp in a fork: nicmart@9f3d9ea
If you agree that this is an issue that has to be fixed, I can open a pull request with the fix.
Thanks!