Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3792671
D208.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D208.diff
View Options
diff --git a/app/Listeners/AMQPEventListener.php b/app/Listeners/AMQPEventListener.php
--- a/app/Listeners/AMQPEventListener.php
+++ b/app/Listeners/AMQPEventListener.php
@@ -129,7 +129,7 @@
*
* @param Illuminate\Events\Dispatcher $events
*/
- public function subscribe ($events) {
+ public function subscribe (\Illuminate\Events\Dispatcher $events) {
$class = 'Nasqueron\Notifications\Listeners\AMQPEventListener';
$events->listen(
'Nasqueron\Notifications\Events\GitHubPayloadEvent',
diff --git a/app/Listeners/LastPayloadSaver.php b/app/Listeners/LastPayloadSaver.php
--- a/app/Listeners/LastPayloadSaver.php
+++ b/app/Listeners/LastPayloadSaver.php
@@ -36,7 +36,7 @@
*
* @param Illuminate\Events\Dispatcher $events
*/
- public function subscribe ($events) {
+ public function subscribe (\Illuminate\Events\Dispatcher $events) {
$ns = 'Nasqueron\Notifications\Events';
$class = 'Nasqueron\Notifications\Listeners\LastPayloadSaver';
$eventsToListen = [
diff --git a/app/Listeners/NotificationListener.php b/app/Listeners/NotificationListener.php
--- a/app/Listeners/NotificationListener.php
+++ b/app/Listeners/NotificationListener.php
@@ -57,7 +57,7 @@
*
* @param Illuminate\Events\Dispatcher $events
*/
- public function subscribe ($events) {
+ public function subscribe (\Illuminate\Events\Dispatcher $events) {
$class = 'Nasqueron\Notifications\Listeners\NotificationListener';
$events->listen(
'Nasqueron\Notifications\Events\DockerHubPayloadEvent',
diff --git a/app/Listeners/PhabricatorListener.php b/app/Listeners/PhabricatorListener.php
--- a/app/Listeners/PhabricatorListener.php
+++ b/app/Listeners/PhabricatorListener.php
@@ -84,7 +84,7 @@
*
* @param Illuminate\Events\Dispatcher $events
*/
- public function subscribe ($events) {
+ public function subscribe (\Illuminate\Events\Dispatcher $events) {
$class = 'Nasqueron\Notifications\Listeners\PhabricatorListener';
$events->listen(
'Nasqueron\Notifications\Events\GitHubPayloadEvent',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 17:49 (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2269557
Default Alt Text
D208.diff (2 KB)
Attached To
Mode
D208: Typehint \Illuminate\Events\Dispatcher in event listeners
Attached
Detach File
Event Timeline
Log In to Comment