From 1df16407efa3953abd77a8980657a59181be359c Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 11 Oct 2017 11:39:23 +0200 Subject: [PATCH] Support PHP 7.0. --- .travis.yml | 1 + composer.json | 2 +- src/Listener/Dca/LeafletDcaListener.php | 2 +- src/Listener/Dca/MarkerDcaListener.php | 2 +- src/Listener/LoadAssetsListener.php | 4 ++-- src/Listener/RegisterLibrariesListener.php | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index bd5f744..b90fbc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: php php: + - "7.0" - "7.1" env: diff --git a/composer.json b/composer.json index 69b8194..7203a8e 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "source": "https://github.com/netzmacht/contao-leaflet-maps" }, "require": { - "php": ">=7.1", + "php": ">=7.0", "contao/core-bundle": "^4.4", "netzmacht/contao-leaflet-libraries": "^1.0", "netzmacht/php-javascript-builder": "^1.0", diff --git a/src/Listener/Dca/LeafletDcaListener.php b/src/Listener/Dca/LeafletDcaListener.php index 99d89c8..c081e38 100644 --- a/src/Listener/Dca/LeafletDcaListener.php +++ b/src/Listener/Dca/LeafletDcaListener.php @@ -56,7 +56,7 @@ class LeafletDcaListener * * @return void */ - public function loadLanguageFile(): void + public function loadLanguageFile() { Controller::loadLanguageFile('leaflet'); } diff --git a/src/Listener/Dca/MarkerDcaListener.php b/src/Listener/Dca/MarkerDcaListener.php index 6d3716c..dcb3260 100644 --- a/src/Listener/Dca/MarkerDcaListener.php +++ b/src/Listener/Dca/MarkerDcaListener.php @@ -47,7 +47,7 @@ class MarkerDcaListener * * @return void */ - public function initialize(): void + public function initialize() { Controller::loadLanguageFile('leaflet'); } diff --git a/src/Listener/LoadAssetsListener.php b/src/Listener/LoadAssetsListener.php index 6ddf39e..2aec697 100644 --- a/src/Listener/LoadAssetsListener.php +++ b/src/Listener/LoadAssetsListener.php @@ -69,7 +69,7 @@ class LoadAssetsListener * * @return void */ - public function onGetJavascriptEvent(): void + public function onGetJavascriptEvent() { $this->assets->addJavascript( 'bundles/netzmachtcontaoleaflet/js/contao-leaflet.js', @@ -117,7 +117,7 @@ class LoadAssetsListener * * @return void */ - protected function loadIconsLibraries($icon): void + protected function loadIconsLibraries($icon) { foreach ($icon::getRequiredLibraries() as $library) { if (!isset($this->libraries[$library])) { diff --git a/src/Listener/RegisterLibrariesListener.php b/src/Listener/RegisterLibrariesListener.php index fc5ea75..e753e94 100644 --- a/src/Listener/RegisterLibrariesListener.php +++ b/src/Listener/RegisterLibrariesListener.php @@ -56,7 +56,7 @@ final class RegisterLibrariesListener * * @return void */ - public function onInitializeSystem(): void + public function onInitializeSystem() { foreach ($this->libraries as $name => $assets) { if (!empty($assets['css'])) {