From ecf45e6d0e08dcdd00132848991a5c05974b0a4b Mon Sep 17 00:00:00 2001 From: MacFJA Date: Sun, 29 Sep 2019 19:12:53 +0200 Subject: [PATCH] Fix PHP7.2 object typehint (#354) --- templates/html/components.xsl | 4 +- templates/html/functions.xsl | 8 +++- templates/html/synopsis.xsl | 9 ++-- tests/data/issue354/src/test.php | 70 ++++++++++++++++++++++++++++++++ tests/data/issue354/test.xml | 15 +++++++ 5 files changed, 98 insertions(+), 8 deletions(-) create mode 100644 tests/data/issue354/src/test.php create mode 100644 tests/data/issue354/test.xml diff --git a/templates/html/components.xsl b/templates/html/components.xsl index a19813bb..cea074bf 100644 --- a/templates/html/components.xsl +++ b/templates/html/components.xsl @@ -325,7 +325,7 @@ - + @@ -504,7 +504,7 @@ - + void diff --git a/templates/html/functions.xsl b/templates/html/functions.xsl index cc11414a..fa1cba47 100644 --- a/templates/html/functions.xsl +++ b/templates/html/functions.xsl @@ -47,15 +47,19 @@ - + + + + object + - + diff --git a/templates/html/synopsis.xsl b/templates/html/synopsis.xsl index 37f2835e..20a7bf67 100644 --- a/templates/html/synopsis.xsl +++ b/templates/html/synopsis.xsl @@ -77,7 +77,7 @@
  • magic (r/o) (w/o)  - + @@ -144,10 +144,11 @@ -   +     +     @@ -159,11 +160,11 @@ ? - + - + void diff --git a/tests/data/issue354/src/test.php b/tests/data/issue354/src/test.php new file mode 100644 index 00000000..a554d7bf --- /dev/null +++ b/tests/data/issue354/src/test.php @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + +