Skip to content

Commit 9226b2f

Browse files
authored
Use correct priority constants in debug plugin (#41714)
1 parent 2875f27 commit 9226b2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/system/debug/src/Extension/Debug.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Joomla\Database\Event\ConnectionEvent;
2929
use Joomla\Event\DispatcherInterface;
3030
use Joomla\Event\Event;
31+
use Joomla\Event\Priority;
3132
use Joomla\Event\SubscriberInterface;
3233
use Joomla\Plugin\System\Debug\DataCollector\InfoCollector;
3334
use Joomla\Plugin\System\Debug\DataCollector\LanguageErrorsCollector;
@@ -146,11 +147,11 @@ public static function getSubscribedEvents(): array
146147
'onBeforeRespond' => 'onBeforeRespond',
147148
'onAfterRespond' => [
148149
'onAfterRespond',
149-
PHP_INT_MIN,
150+
Priority::MIN,
150151
],
151152
ApplicationEvents::AFTER_RESPOND => [
152153
'onAfterRespond',
153-
PHP_INT_MIN,
154+
Priority::MIN,
154155
],
155156
'onAfterDisconnect' => 'onAfterDisconnect',
156157
];

0 commit comments

Comments
 (0)