You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
9
9
For a full diff see [`2.9.0...main`][2.9.0...main].
10
10
11
+
### Added
12
+
13
+
- Added `Methods\InvokeParentHookMethodRule`, which reports an error when a hook method that overrides a hook method in a parent class does not invoke the overridden hook method in the expected order ([#939]), by [@localheinz]
14
+
11
15
## [`2.9.0`][2.9.0]
12
16
13
17
For a full diff see [`2.8.0...2.9.0`][2.8.0...2.9.0].
@@ -640,6 +644,7 @@ For a full diff see [`362c7ea...0.1.0`][362c7ea...0.1.0].
This rule reports an error when a hook method that overrides a hook method in a parent class does not invoke the overridden hook method in the expected order.
453
+
454
+
##### Defaults
455
+
456
+
By default, this rule requires the following hook methods to be invoked before doing something in the overriding method:
-`className`: name of the class that declares the hook method
503
+
-`methodName`: name of the hook method
504
+
-`hasContent`: one of `"yes"`, `"no"`, `"maybe"`
505
+
-`invocation`: one of `"any"` (needs to be invoked), `"first"` (needs to be invoked before all other statements in the overriding hook method, `"last"` (needs to be invoked after all other statements in the overriding hook method)
0 commit comments