Skip to content

Fix array_search check #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 7, 2014
Merged

Fix array_search check #134

merged 2 commits into from
Nov 7, 2014

Conversation

webda2l
Copy link

@webda2l webda2l commented Nov 7, 2014

No description provided.

@@ -60,7 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
return 1;
}

if (array_search($workspaceName, $workspace->getAccessibleWorkspaceNames())) {
if (false !== array_search($workspaceName, $workspace->getAccessibleWorkspaceNames())) {
Copy link
Member

Choose a reason for hiding this comment

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

ouch. good catch. can we just change that to in_array? would be more semantically precise.

@dbu dbu mentioned this pull request Nov 7, 2014
@webda2l
Copy link
Author

webda2l commented Nov 7, 2014

@dbu true, fixed.

dbu added a commit that referenced this pull request Nov 7, 2014
@dbu dbu merged commit 38ce61e into phpcr:master Nov 7, 2014
@dbu
Copy link
Member

dbu commented Nov 7, 2014

thanks a lot!

@webda2l
Copy link
Author

webda2l commented Nov 7, 2014

You're welcome!
New minor release tag will be nice. With #135 if possible

@webda2l webda2l deleted the patch-1 branch November 7, 2014 16:01
@dbu
Copy link
Member

dbu commented Nov 7, 2014

absolutely. fighting with travis timeouts on hhvm, hope to merge it in
the next half our or so.

@webda2l
Copy link
Author

webda2l commented Nov 7, 2014

ok thanks

@dbu
Copy link
Member

dbu commented Nov 7, 2014

and done. you have 1.2.1 now :-)

@webda2l
Copy link
Author

webda2l commented Nov 7, 2014

Great, thanks!

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

Successfully merging this pull request may close these issues.

2 participants