Skip to content

Commit

Permalink
Fixed a wrong argument type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Saboteur777 committed Aug 29, 2020
1 parent d1496b0 commit 3f2424c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,17 @@ function(PluginEvent $event) {
Event::on(
ProjectConfig::class,
ProjectConfig::EVENT_AFTER_APPLY_CHANGES,
function(PluginEvent $event) {
if ($event->plugin !== $this) {
$this->_callBackend();
}
function(Event $event) {
$this->_callBackend();
}
);

if (defined('craft\services\ProjectConfig::EVENT_REBUILD')) {
Event::on(
ProjectConfig::class,
ProjectConfig::EVENT_REBUILD,
function(PluginEvent $event) {
if ($event->plugin !== $this) {
$this->_callBackend();
}
function(Event $event) {
$this->_callBackend();
}
);
}
Expand Down

0 comments on commit 3f2424c

Please sign in to comment.