Declare all previously dynamic properties as far up the class hierarchy as needed and remove all declarations further down the inheritance tree.
Remove one nonexistent variable.
Co-authored-by: haszi <haszika80@gmail.com>
* Add table formatting for constant lists
* Add description and constants autogen text to .ini files
* Add language specific header to constant list table
---------
Co-authored-by: haszi <haszika80@gmail.com>
- Adds cchunk variable for tracking if a classsynopsis is actually an interface
- Render extends instead of implements for interfaces
- Render interface instead of class
In PHP, parameters with a default value are optional, so there is no
need to enclose these in brackets. For methodparams which do not have
an initializer, we use a question mark instead.
Closes GH-37.
So far, PhD does not support variadic parameters. Instead the manual
follows the convention to use `...` as parameter name, which is then
rendered as `$...` in the docs. However, as of PHP 5.6.0 variadic
parameters are supported using the syntax `...$args`; therefore, we are
going to support this notation for PhD.
While DocBook supports a `<varargs>` element, this cannot be used in
combination with named parameters. Therefore, we use the `rep`
attribute of the `<methodparam>` element to designate variadic
parameters.
This is the cleaner alternative to PR #25, which supports nested
`<type>` elements, and renders them as union types in PHP 8 syntax.
We also drop special support for array|object.
This patch adds some missing newlines and trims multiple redundant
newlines into a single newline.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
This change moves the return type name to the right-hand side of the
function/method prototypes, along the same lines as PHP 7 code.
Before:
int time ( void )
After:
time ( void ) : int
While this is a step towards PHP 7 style, there are still some
departures. Notably:
- No conversion to valid scalar type names is done (e.g. converting
"<type>boolean</type>" to " : bool")
- Pseudo-types and other invalid type names are used (e.g. resource,
mixed)
* Make some of the tests pass (they probably didn't even before my changes)
* Changed <refsection> rendering in Package_PEAR_XHTML, format_refsect() has unfortunate side effects
# Useful for linking to specific examples via irc/email for example
# And will make it possible to create an example listing like we have always wanted