-
Notifications
You must be signed in to change notification settings - Fork 158
Conversation
Hotfix: Added correct type comparison
Thank you, @ins0! |
@@ -131,7 +131,7 @@ public function currentUserModules() | |||
return false; | |||
} | |||
|
|||
if (null === $this->moduleMapper->findByUrl($repository->html_url)) { | |||
if (false === $this->moduleMapper->findByUrl($repository->html_url)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Urgh, why is a mapper returning false
on a non-match? :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondered myself, but apparently that's what it does - I'd personally expect null
, or a NullModule
?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WTF.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚋 Doctrine 🚋
fixes #415