@@ -205,7 +205,7 @@ interpreted as described in [RFC 2119][RFC2119].
205
205
FQSEN = fqnn / fqcn / constant / method / property / function
206
206
fqnn = "\" [name] *("\" [name])
207
207
fqcn = fqnn "\" name
208
- constant = (fqnn "\" / fqcn "::") name
208
+ constant = (( fqnn "\") / ( fqcn "::") ) name
209
209
method = fqcn "::" name "()"
210
210
property = fqcn "::$" name
211
211
function = fqnn "\" name "()"
@@ -223,17 +223,18 @@ interpreted as described in [RFC 2119][RFC2119].
223
223
The PHPDoc format has the following [ ABNF] [ RFC5234 ]
224
224
definition:
225
225
226
- PHPDoc = [summary] [description] [tags]
227
- summary = *CHAR (2*CRLF)
228
- description = 1*(CHAR / inline-tag) 1*CRLF ; any amount of characters
226
+ PHPDoc = [summary [description]] [tags]
227
+ eol = [CR] LF ; to compatible with PSR-12
228
+ summary = 1*CHAR 2*eol
229
+ description = 1*(CHAR / inline-tag) 1*eol ; any amount of characters
229
230
; with inline tags inside
230
- tags = *(tag 1*CRLF )
231
+ tags = *(tag 1*eol )
231
232
inline-tag = "{" tag "}"
232
233
tag = "@" tag-name [":" tag-specialization] [tag-details]
233
234
tag-name = (ALPHA / "\") *(ALPHA / DIGIT / "\" / "-" / "_")
234
235
tag-specialization = 1*(ALPHA / DIGIT / "-")
235
- tag-details = *SP (SP tag-description / tag-signature )
236
- tag-description = 1 *(CHAR / CRLF )
236
+ tag-details = (1 *SP tag-description) / tag-signature
237
+ tag-description = (CHAR / inline-tag) *(CHAR / inline-tag / eol )
237
238
tag-signature = "(" *tag-argument ")"
238
239
tag-argument = *SP 1*CHAR [","] *SP
239
240
@@ -481,8 +482,8 @@ A Type has the following [ABNF][RFC5234] definition:
481
482
array-expression = "(" type-expression ")"
482
483
class-name = ["\"] label *("\" label)
483
484
label = (ALPHA / %x7F-FF) *(ALPHA / DIGIT / %x7F-FF)
484
- keyword = "array" / "bool" / "callable" / "false" / "float" / "int" / "iterable" / "mixed" / "null" / "object" /
485
- keyword = " resource" / "self" / "static" / "string" / "true" / "void" / "$this" / "never "
485
+ keyword = "array" / "bool" / "callable" / "false" / "float" / "int" / "iterable" / "mixed" / "never"
486
+ keyword =/ "null" / "object" / " resource" / "self" / "static" / "string" / "true" / "void" / "$this"
486
487
487
488
### Details
488
489
0 commit comments