Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357) #6882

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

Closed
wants to merge 1 commit into from

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jan 25, 2013

Q A
Bug fix? yes (fixed a BC break)
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #6357
License MIT
Doc PR n/a

@@ -52,7 +52,11 @@ public function testCommand($command)
{
if (self::TYPE_WINDOWS === $this->type) {
// todo: find a way to test if windows command exists
return true;
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

@fabpot why has this been changed ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@fabpot @vicb I dont think it's important,

  • return true means each tested command is available on windows plateformes,
  • return false means no tested command is available on windows plateformes.

Considering that Windows plateformes support is not implemented and that none of the two solutions would be acceptable, I guess the only important thing is to return a boolean, whatever its value.

That said, false may be safer than true.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for the clarification.

fabpot added a commit that referenced this pull request Feb 4, 2013
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6882).

Commits
-------

b8ef96e [Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357)

Discussion
----------

[Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357)

| Q             | A
| ------------- | ---
| Bug fix?      | yes (fixed a BC break)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6357
| License       | MIT
| Doc PR        | n/a
@fabpot fabpot closed this Feb 4, 2013
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.

3 participants