Skip to content

Commit

Permalink
Merge pull request #107 from szymach/php7.2-fix
Browse files Browse the repository at this point in the history
Fixed TranslatationHelper for PHP7.2
  • Loading branch information
szymach authored Jan 21, 2018
2 parents 300464b + c1c92b0 commit 97163cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ matrix:
- php: 7.1
env:
- COMPOSER_FLAGS='--prefer-lowest'
- php: 7.1
- php: 7.2

sudo: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function hasTranslatedProperties(ClassTranslationContext $context, $objec
foreach ($properties as $property => $translationField) {
$value = $this->propertyManipulator->getPropertyValue($object, $property);
if ($translationMeta->isCollectionValuedAssociation($translationField)
&& count($value)
&& (is_iterable($value) && count($value))
|| !$translationMeta->isCollectionValuedAssociation($translationField)
&& null !== $value
) {
Expand Down

0 comments on commit 97163cc

Please sign in to comment.