mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 11:04:08 +01:00
Support PHP 7.0.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- "7.0"
|
||||
- "7.1"
|
||||
|
||||
env:
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -56,7 +56,7 @@ class LeafletDcaListener
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function loadLanguageFile(): void
|
||||
public function loadLanguageFile()
|
||||
{
|
||||
Controller::loadLanguageFile('leaflet');
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class MarkerDcaListener
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function initialize(): void
|
||||
public function initialize()
|
||||
{
|
||||
Controller::loadLanguageFile('leaflet');
|
||||
}
|
||||
|
||||
@@ -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])) {
|
||||
|
||||
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user