Skip to content

Commit

Permalink
fix compatibility with php 5.5 (sulu#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored and wachterjohannes committed Mar 13, 2018
1 parent c3519b9 commit b79d990
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ cache:

matrix:
include:
- php: 5.6
- php: 5.5
env:
- COMPOSER_FLAGS="--prefer-dist --no-interaction"
- php: 7.0
- php: 7.1
env:
- COMPOSER_FLAGS="--prefer-dist --no-interaction"

Expand Down
4 changes: 3 additions & 1 deletion app/AbstractKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public function registerBundles()
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
if (class_exists('Symfony\Bundle\WebServerBundle\WebServerBundle')) {
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
}

// debug enhancement
$bundles[] = new Sulu\Bundle\TestBundle\SuluTestBundle();
Expand Down
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,26 @@
"require": {
"php": "^5.5.9 || ~7.0",
"twig/extensions": "^1.0",
"symfony/symfony": "^3.3",
"symfony/symfony": "^2.8.7 || ^3.0",
"symfony/monolog-bundle": "^2.8.7 || ^3.0",
"sensio/distribution-bundle": "^5.0",
"sensio/distribution-bundle": "^5.0.6",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"incenteev/composer-parameter-handler": "~2.1",
"sulu/sulu": "~1.6.0",
"dantleech/phpcr-migrations-bundle": "~1.0",
"zendframework/zend-stdlib": "^2.3",
"zendframework/zendsearch": "@dev",
"massive/build-bundle": "0.3.*",
"jackalope/jackalope-doctrine-dbal": "^1.2.5",
"jackalope/jackalope-jackrabbit": "^1.2.0",
"jackalope/jackalope-jackrabbit": "^1.2",
"doctrine/doctrine-fixtures-bundle": "~2.3",
"doctrine/doctrine-bundle": "^1.0",
"doctrine/doctrine-cache-bundle": "^1.0",
"oro/doctrine-extensions": "^1.0"
"doctrine/doctrine-cache-bundle": "^1.0"
},
"require-dev": {
"sensio/generator-bundle": "~2.8 || ~3.0",
"phpcr/phpcr-shell": "~1.0",
"symfony/phpunit-bridge": "^3.3"
"symfony/phpunit-bridge": "^2.8.7 || ^3.0"
},
"scripts": {
"post-install-cmd": [
Expand Down
2 changes: 1 addition & 1 deletion tests/travis.php.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
memory_limit = 2048M
memory_limit = 4096M

0 comments on commit b79d990

Please sign in to comment.