Skip to content

Commit 32bea8c

Browse files
use parameters and returns as table headers
1 parent a551778 commit 32bea8c

2 files changed

Lines changed: 10 additions & 24 deletions

File tree

docs/reference/functions.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ failing.
1414
php_debugger_break(): bool
1515
```
1616

17-
| | |
17+
| Parameters | Returns |
1818
| --- | --- |
19-
| Parameters | None |
20-
| Returns | `true` if execution stopped, `false` if it could not |
19+
| None | `true` if execution stopped, `false` if it could not |
2120

2221
Stops execution at this line and hands the session to your editor, exactly as
2322
though you had set a [breakpoint](../user-guide/breakpoints.md) on it.
@@ -49,10 +48,9 @@ set from your editor whenever one will do.
4948
php_debugger_connect_to_client(): bool
5049
```
5150

52-
| | |
51+
| Parameters | Returns |
5352
| --- | --- |
54-
| Parameters | None |
55-
| Returns | `true` if the connection was set up, `false` otherwise |
53+
| None | `true` if the connection was set up, `false` otherwise |
5654

5755
Connects to your editor part-way through a request, for the case where the session
5856
did not start at the beginning of it.
@@ -78,10 +76,9 @@ until something else — a breakpoint, or a later `php_debugger_break()` — pau
7876
php_debugger_info(?string $category = null): mixed
7977
```
8078

81-
| | |
79+
| Parameters | Returns |
8280
| --- | --- |
83-
| `$category` | `null` for the full report, or `"mode"` or `"extension-flags"` |
84-
| Returns | `null` for the full report, which it prints; an array for a category |
81+
| `$category` — omit for the full report, or pass `"mode"` or `"extension-flags"` | `null` for the full report, which it prints; an array for a category |
8582

8683
Reports how the debugger is configured and what it is currently doing.
8784

@@ -114,10 +111,9 @@ features this build was compiled with.
114111
php_debugger_is_debugger_active(): bool
115112
```
116113

117-
| | |
114+
| Parameters | Returns |
118115
| --- | --- |
119-
| Parameters | None |
120-
| Returns | `true` if a debugging session is connected right now |
116+
| None | `true` if a debugging session is connected right now |
121117

122118
Reports whether a client is connected. It has no side effects and never raises
123119
anything, so it is the safe way to ask before doing something that only makes sense
@@ -139,10 +135,9 @@ watching things expire.
139135
php_debugger_notify(mixed $data): bool
140136
```
141137

142-
| | |
138+
| Parameters | Returns |
143139
| --- | --- |
144-
| `$data` | Any value. Sent to your editor as a structured value, not a string |
145-
| Returns | `true` if the notification was sent, `false` if nothing is connected |
140+
| `$data` — any value, sent structured rather than flattened to a string | `true` if the notification was sent, `false` if nothing is connected |
146141

147142
Sends a value to your editor's notification panel, along with the file and line it
148143
came from, without stopping execution.

src/css/custom.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,3 @@ article a {
197197
.theme-admonition-info [class*='admonitionIcon'] svg {
198198
fill: var(--ifm-color-primary);
199199
}
200-
201-
/* Some reference tables are two-column label/value pairs with no meaningful
202-
heading. Markdown has no way to write a table without a header row, so those
203-
are written with blank cells -- which still render as an empty band above the
204-
table. Hide the header when every cell in it is blank; tables with real
205-
headings are untouched. */
206-
.markdown table thead:not(:has(th:not(:empty))) {
207-
display: none;
208-
}

0 commit comments

Comments
 (0)