From 7fa9b789d330f1212d339d55649076df36d18d71 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 23 Apr 2018 17:55:38 +0200 Subject: [PATCH 1/2] fix Travis CI job --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 5bdf8c4..0f9d52b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ matrix: fast_finish: true include: - php: 5.3 + dist: precise env: deps="low" before_install: From 3b50816aec2f005a7bbf1eb3190c9815f29f98eb Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 23 Apr 2018 17:56:15 +0200 Subject: [PATCH 2/2] bump version for removal of deprecated features --- src/State.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/State.php b/src/State.php index 843969a..12d270c 100644 --- a/src/State.php +++ b/src/State.php @@ -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; @@ -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(); }