Skip to content

Commit

Permalink
Merge pull request #1684 from spiroski/v2.4.x
Browse files Browse the repository at this point in the history
Fix PHP7 error "Cannot use 'String' as a class name".
  • Loading branch information
l3pp4rd authored Oct 11, 2016
2 parents 2664e22 + c3976d4 commit a7f7243
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class AbstractPersonalTranslation
/**
* @var string $locale
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $locale;

Expand All @@ -34,14 +34,14 @@ abstract class AbstractPersonalTranslation
/**
* @var string $field
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $field;

/**
* @var string $content
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $content;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,35 @@ abstract class AbstractTranslation
/**
* @var string $locale
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $locale;

/**
* @var string $objectClass
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $objectClass;

/**
* @var string $field
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $field;

/**
* @var string $foreignKey
*
* @MongoODM\String(name="foreign_key")
* @MongoODM\Field(type="string", name="foreign_key")
*/
protected $foreignKey;

/**
* @var string $content
*
* @MongoODM\String
* @MongoODM\Field(type="string")
*/
protected $content;

Expand Down

0 comments on commit a7f7243

Please sign in to comment.