You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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!
The text was updated successfully, but these errors were encountered:
Be more specific when checking the first character of the element names.
And allow utf-8 chars in element names according to the php spec.
FixesphpDocumentor#7.
Uh oh!
There was an error while loading. Please reload this page.
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:
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!
The text was updated successfully, but these errors were encountered: