Skip to content

Commit

Permalink
TASK: Adjust for compatibility with PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeyer committed Dec 21, 2015
1 parent 7fb5cd0 commit 7778aa6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* String Data Type
*/
class Integer extends String
class Integer extends StringValue
{
/**
* @return integer
Expand Down
2 changes: 1 addition & 1 deletion Classes/Ttree/ContentRepositoryImporter/DataType/Slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Slug extends DataType
*/
protected function initializeValue($value)
{
$value = new String($value);
$value = new StringValue($value);
$slugify = new Slugify();
$this->value = $slugify->slugify($value->getValue());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* String Data Type
*/
class String extends DataType
class StringValue extends DataType
{
/**
* @param string $value
Expand Down

0 comments on commit 7778aa6

Please sign in to comment.