Skip to content

Commit fcf71d7

Browse files
committed
Require PHP 8.2 and switch hooks doc generator
Update composer.json to set platform PHP to 8.2 and require PHP >=8.2. Replace pronamic/wp-documentor with solvebeam/wp-hooks-documentor (^1.5) and update the build-docs script to use vendor/bin/wphd parse. Regenerate docs/hooks.md to reflect the new generator (footer updated), remove the gform_ideal_fulfillment actions section, and include a deprecation notice emitted during generation.
1 parent d73f443 commit fcf71d7

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"automattic/jetpack-autoloader": true
3939
},
4040
"platform": {
41-
"php": "8.1"
41+
"php": "8.2"
4242
},
4343
"platform-check": false,
4444
"sort-packages": true,
@@ -62,7 +62,7 @@
6262
}
6363
},
6464
"require": {
65-
"php": ">=8.1",
65+
"php": ">=8.2",
6666
"automattic/jetpack-autoloader": "^3.0 || ^4.0 || ^5.0",
6767
"composer/installers": "^2.2",
6868
"pronamic/ideal-issuers": "^1.1",
@@ -82,8 +82,8 @@
8282
"pronamic/gravityforms": "^2.8",
8383
"pronamic/pronamic-cli": "^1.1",
8484
"pronamic/wp-coding-standards": "^2.2",
85-
"pronamic/wp-documentor": "^1.4",
8685
"roots/wordpress": "^6.0",
86+
"solvebeam/wp-hooks-documentor": "^1.5",
8787
"szepeviktor/phpstan-wordpress": "^1.3",
8888
"vimeo/psalm": "^5.24",
8989
"wp-pay-gateways/mollie": "^4.12",
@@ -100,7 +100,7 @@
100100
"phpunit": "vendor/bin/phpunit",
101101
"psalm": "vendor/bin/psalm",
102102
"build-docs": [
103-
"vendor/bin/wp-documentor parse src --format=markdown --relative=docs > docs/hooks.md"
103+
"vendor/bin/wphd parse src --format=markdown --relative=docs > docs/hooks.md"
104104
]
105105
}
106106
}

docs/hooks.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
1+
2+
Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in /Users/remco/Projects/wp-pronamic-pay-gravityforms/vendor/react/promise/src/functions.php on line 369
13
# Hooks
24

35
- [Actions](#actions)
46
- [Filters](#filters)
57

68
## Actions
79

8-
### `gform_ideal_fulfillment`
9-
10-
*Execute payment fulfillment action (PayPal uses `gform_paypal_fulfillment`).*
11-
12-
**Arguments**
13-
14-
Argument | Type | Description
15-
-------- | ---- | -----------
16-
`$entry` | `object` | The entry used to generate the (iDEAL) payment.
17-
`$feed` | `object` | The feed configuration data used to generate the payment.
18-
19-
**Changelog**
20-
21-
Version | Description
22-
------- | -----------
23-
`1.0.0` |
24-
25-
Source: [src/Extension.php](../src/Extension.php), [line 1062](../src/Extension.php#L1062-L1072)
10+
*This project does not contain any WordPress actions.*
2611

2712
## Filters
2813

@@ -45,5 +30,5 @@ Version | Description
4530
Source: [src/Extension.php](../src/Extension.php), [line 1479](../src/Extension.php#L1479-L1501)
4631

4732

48-
<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.1.0</code></em><p>
33+
<p align="center"><a href="https://github.com/solvebeam/wp-hooks-documentor"><img src="https://cdn.jsdelivr.net/gh/solvebeam/wp-hooks-documentor@main/logos/solvebeam-wp-hooks-documentor.svgo-min.svg" alt="SolveBeam WordPress Hooks Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/solvebeam/wp-hooks-documentor">SolveBeam WordPress Hooks Documentor</a> <code>1.5.0</code></em><p>
4934

0 commit comments

Comments
 (0)