Skip to content

Commit 9c30206

Browse files
author
Jérôme Parmentier
committed
Fix fatal error
Fatal error: Cannot use Xabbuh\XApi\Model\Actor as Actor because the name is already in use in /srv/app/vendor/php-xapi/repository-doctrine/src/Mapping/Object.php on line 16
1 parent eb1e6c6 commit 9c30206

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Mapping/Object.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Xabbuh\XApi\Model\Account;
1515
use Xabbuh\XApi\Model\Activity;
16-
use Xabbuh\XApi\Model\Actor;
16+
use Xabbuh\XApi\Model\Actor as ActorModel;
1717
use Xabbuh\XApi\Model\Agent;
1818
use Xabbuh\XApi\Model\Definition;
1919
use Xabbuh\XApi\Model\Group;
@@ -181,7 +181,7 @@ class Object
181181

182182
public static function fromModel(ObjectModel $model)
183183
{
184-
if ($model instanceof Actor) {
184+
if ($model instanceof ActorModel) {
185185
return self::fromActor($model);
186186
}
187187

@@ -265,7 +265,7 @@ private static function fromActivity(Activity $model)
265265
return $object;
266266
}
267267

268-
private static function fromActor(Actor $model)
268+
private static function fromActor(ActorModel $model)
269269
{
270270
$inverseFunctionalIdentifier = $model->getInverseFunctionalIdentifier();
271271

0 commit comments

Comments
 (0)