Skip to content

Commit

Permalink
Merge pull request #57 from jhedstrom/fix-php-53
Browse files Browse the repository at this point in the history
Fix PHP 5.3 compatibility.

Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed Sep 2, 2015
1 parent 570009a commit 96ebcbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ install:
- composer install --dev --prefer-source

script:
- find ./src -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
- phpunit
- vendor/bin/phpspec run -f pretty --no-interaction
- ./vendor/bin/phpcs --standard=./phpcs-ruleset.xml --ignore=./vendor --ignore=./doc --ignore=./spec .
Expand Down
2 changes: 1 addition & 1 deletion src/Drupal/Driver/Fields/Drupal6/TaxonomyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TaxonomyHandler implements FieldHandlerInterface {
* {@inheritdoc}
*/
public function expand($values) {
$result = [];
$result = array();
$values = (array) $values;
foreach ($values as $entry) {
$terms = explode(',', $entry);
Expand Down

0 comments on commit 96ebcbb

Please sign in to comment.