Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Hotfix: Added correct type comparison #416

Merged
merged 3 commits into from
Feb 24, 2015
Merged

Conversation

ins0
Copy link
Contributor

@ins0 ins0 commented Feb 24, 2015

fixes #415

@ins0 ins0 changed the title Hotfix: Remove explicit type comparison Hotfix: Added correct type comparison Feb 24, 2015
@localheinz localheinz self-assigned this Feb 24, 2015
@localheinz localheinz added the Bug label Feb 24, 2015
localheinz added a commit that referenced this pull request Feb 24, 2015
Hotfix: Added correct type comparison
@localheinz localheinz merged commit 8c55276 into zendframework:master Feb 24, 2015
@localheinz
Copy link
Member

Thank you, @ins0!

@ins0 ins0 deleted the fix/415 branch February 24, 2015 07:20
@@ -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)) {
Copy link
Member

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? :-(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ocramius

Wondered myself, but apparently that's what it does - I'd personally expect null, or a NullModule?!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WTF.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚋 Doctrine 🚋

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/user Registered Modules bug
3 participants