mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Add Composer autoloading functions and PHPStan for testing
This commit is contained in:
parent
e198c4db65
commit
f5d7d4e02a
1518 changed files with 169063 additions and 30 deletions
41
vendor/phpstan/phpdoc-parser/doc/grammars/phpdoc-method.peg
vendored
Normal file
41
vendor/phpstan/phpdoc-parser/doc/grammars/phpdoc-method.peg
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
PhpDocMethod
|
||||
= AnnotationName IsStatic? MethodReturnType? MethodName MethodParameters? Description?
|
||||
|
||||
AnnotationName
|
||||
= '@method'
|
||||
|
||||
IsStatic
|
||||
= 'static'
|
||||
|
||||
MethodReturnType
|
||||
= Type
|
||||
|
||||
MethodName
|
||||
= [a-zA-Z_\127-\255][a-zA-Z0-9_\127-\255]*
|
||||
|
||||
MethodParameters
|
||||
= '(' MethodParametersInner? ')'
|
||||
|
||||
MethodParametersInner
|
||||
= MethodParameter (',' MethodParameter)*
|
||||
|
||||
MethodParameter
|
||||
= MethodParameterType? IsReference? IsVariaric? MethodParameterName MethodParameterDefaultValue?
|
||||
|
||||
MethodParameterType
|
||||
= Type
|
||||
|
||||
IsReference
|
||||
= '&'
|
||||
|
||||
IsVariaric
|
||||
= '...'
|
||||
|
||||
MethodParameterName
|
||||
= '$' [a-zA-Z_\127-\255][a-zA-Z0-9_\127-\255]*
|
||||
|
||||
MethodParameterDefaultValue
|
||||
= '=' PhpConstantExpr
|
||||
|
||||
Description
|
||||
= .+ # TODO: exclude EOL or another PhpDocTag start
|
Loading…
Add table
Add a link
Reference in a new issue