Skip to content

Commit d76e86b

Browse files
committed
🎨 Improve types info for properties
1 parent 15f01c8 commit d76e86b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

data/templates/vuepress/property.md.twig

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,24 @@
1212
{{- '$' ~ property.name }} {{ include('badges.md.twig', { elem: property }) }}
1313
-----
1414

15+
{{ property.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }}
16+
17+
1518
{# property signature #}
1619
```php
17-
{{ property.visibility }}{% if property.static %} static{% endif %} {{ property.types|default(['mixed'])|join('|')}} ${{ property.name }}
20+
{{ property.visibility }}{% if property.static %} static{% endif %} ${{ property.name }}
1821
{%- if property.default %} = {{ property.default|raw }}{% endif %};
1922
```
2023

21-
{{ property.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }}
24+
***Types:***
25+
- `{{ property.types|default(['mixed'])|join('`\n-`') }}`
2226

2327
{% if property.description is not empty %}
2428
***Description:***
2529

2630
{{ property.description|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }}
2731
{% endif %}
2832

29-
{% if method.response.description %}
30-
***Return Value:***
31-
32-
{{ method.response.description|raw }}
33-
34-
{% endif %}
35-
3633

3734
{% if method.tags.see is not empty or method.tags.link is not empty %}
3835
***See Also:***

0 commit comments

Comments
 (0)