Skip to content

Commit 50e451e

Browse files
committed
Merge branch 'main' of https://github.com/craftcms/webhooks into 3.0
# Conflicts: # composer.json # composer.lock
2 parents d7b8417 + 99264f9 commit 50e451e

File tree

5 files changed

+475
-510
lines changed

5 files changed

+475
-510
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,13 @@ use yii\base\Event;
107107
use craft\webhooks\Plugin as Webhooks;
108108
use craft\events\RegisterComponentTypesEvent;
109109

110-
Event::on(Webhooks::class, Webhooks::EVENT_REGISTER_FILTER_TYPES, function(RegisterComponentTypesEvent $e) {
111-
$e->types[] = ArticleFilter::class;
112-
});
110+
Event::on(
111+
Webhooks::class,
112+
Webhooks::EVENT_REGISTER_FILTER_TYPES,
113+
function(RegisterComponentTypesEvent $event) {
114+
$event->types[] = ArticleFilter::class;
115+
}
116+
);
113117
```
114118

115119
Filter type classes must implement `craft\webhooks\filters\FilterInterface`:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
"rss": "https://github.com/craftcms/webhooks/commits/master.atom"
2626
},
2727
"minimum-stability": "dev",
28+
"prefer-stable": true,
2829
"require": {
2930
"php": "^8.0.2",
3031
"craftcms/cms": "^4.0.0-alpha.1"
3132
},
3233
"require-dev": {
33-
"phpstan/phpstan": "^1.4.6",
34+
"craftcms/phpstan": "dev-main",
3435
"craftcms/rector": "dev-main"
3536
},
3637
"autoload": {

0 commit comments

Comments
 (0)