From f0f1e116d48a18e7a79a80946689250bb0a1e0d9 Mon Sep 17 00:00:00 2001 From: Lukas Koell Date: Sun, 16 May 2021 22:56:42 +0200 Subject: [PATCH 1/2] update deps & make fit for php8 --- composer.json | 4 ++-- src/Limenius/Liform/Transformer/AbstractTransformer.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 309239b..928eac5 100644 --- a/composer.json +++ b/composer.json @@ -20,14 +20,14 @@ } }, "require": { - "php": "^7.2.5", + "php": "^7.2.5|^8.0", "symfony/form": "^4.4|^5.0", "symfony/translation": "^4.4|^5.0", "symfony/serializer": "^4.4|^5.0", "symfony/contracts": "^1.0|^2.1" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2", + "dealerdirect/phpcodesniffer-composer-installer": "^v0.7.1", "escapestudios/symfony2-coding-standard": "^3.0", "phpunit/phpunit": "^8.0", "phpcompatibility/php-compatibility": "^9.3" diff --git a/src/Limenius/Liform/Transformer/AbstractTransformer.php b/src/Limenius/Liform/Transformer/AbstractTransformer.php index cf812d9..041ba5e 100644 --- a/src/Limenius/Liform/Transformer/AbstractTransformer.php +++ b/src/Limenius/Liform/Transformer/AbstractTransformer.php @@ -75,7 +75,7 @@ protected function applyExtensions(array $extensions, FormInterface $form, array * * @return array */ - protected function addCommonSpecs(FormInterface $form, array $schema, $extensions = [], $widget) + protected function addCommonSpecs(FormInterface $form, array $schema, $extensions = [], $widget = null) { $schema = $this->addLabel($form, $schema); $schema = $this->addAttr($form, $schema); From 28828461425acfb9d30ae02f554055be17ca5530 Mon Sep 17 00:00:00 2001 From: phpwutz Date: Sun, 16 May 2021 22:57:16 +0200 Subject: [PATCH 2/2] add php8 to travis build list --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a69f692..ad8d6be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ php: - 7.2 - 7.3 - 7.4 + - 8.0 before_install: - composer self-update