Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit bbb4a3d

Browse files
authored
Update plugins.md
The `__destruct` is excluded (just like `__construct`), see `\Magento\Framework\Interception\Code\Generator\Interceptor::_getClassMethods()`
1 parent 9eba2c9 commit bbb4a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guides/v2.3/extension-dev-guide/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Plugins can not be used on following:
1818
* Final classes
1919
* Non-public methods
2020
* Class methods (such as static methods)
21-
* `__construct`
21+
* `__construct` and `__destruct`
2222
* Virtual types
2323
* Objects that are instantiated before `Magento\Framework\Interception` is bootstrapped
2424

0 commit comments

Comments
 (0)