Skip to content

Commit

Permalink
Merge pull request consolidation#269 from Codegyre/deprecate-result-i…
Browse files Browse the repository at this point in the history
…nvoke

Mark Result::_invoke() deprecated.
  • Loading branch information
DavertMik committed Feb 12, 2016
2 parents 48d75eb + 2220ad1 commit 0a2696a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@ public function wasSuccessful()
return $this->exitCode === 0;
}

/**
* @deprecated since 1.0. @see wasSuccessful()
*/
public function __invoke()
{
trigger_error(__METHOD__ . ' is deprecated: use wasSuccessful() instead.', E_USER_DEPRECATED);
return $this->wasSuccessful();
}

Expand Down

0 comments on commit 0a2696a

Please sign in to comment.