Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
* 1.x:
  bump version for removal of deprecated features
  fix Travis CI job
  • Loading branch information
xabbuh committed Apr 23, 2018
2 parents b38f9dc + 3b50816 commit 9317187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class State
public function __construct(Activity $activity, Actor $actor, $stateId, $registrationId = null)
{
if (!$actor instanceof Agent) {
@trigger_error(sprintf('Passing an instance of "%s" as the second argument is deprecated since 1.2. In 3.0, only instances of "Xabbuh\XApi\Model\Agent" will be accepted.', get_class($actor)), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing an instance of "%s" as the second argument is deprecated since 1.2. In 4.0, only instances of "Xabbuh\XApi\Model\Agent" will be accepted.', get_class($actor)), E_USER_DEPRECATED);
}

$this->activity = $activity;
Expand All @@ -65,11 +65,11 @@ public function getActivity()
*
* @return Actor The actor
*
* @deprecated since 1.2, to be removed in 3.0
* @deprecated since 1.2, to be removed in 4.0
*/
public function getActor()
{
@trigger_error(sprintf('The "%s()" method is deprecated since 1.2 and will be removed in 3.0, use "%s::getAgent()" instead.', __METHOD__, __CLASS__), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s()" method is deprecated since 1.2 and will be removed in 4.0, use "%s::getAgent()" instead.', __METHOD__, __CLASS__), E_USER_DEPRECATED);

return $this->getAgent();
}
Expand Down

0 comments on commit 9317187

Please # to comment.