From 0c62ed05824e750acaf4fa414be61d6f3caf8949 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Mon, 7 Mar 2022 14:16:37 -0300 Subject: [PATCH] Update to PHP 8 --- Dockerfile | 8 ++++---- composer.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1189fae..33834f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM php:7.4-fpm +FROM php:8.1-fpm -RUN apt-get update && apt-get install -y libzip-dev libicu-dev git +RUN apt-get update && apt-get install -y libzip-dev libicu-dev git libpng-dev unzip -RUN docker-php-ext-install pdo pdo_mysql zip intl +RUN docker-php-ext-install pdo pdo_mysql zip intl gd -RUN pecl install xdebug-3.0.3 \ +RUN pecl install xdebug-3.1.3 \ && docker-php-ext-enable xdebug COPY --from=composer /usr/bin/composer /usr/bin/composer diff --git a/composer.json b/composer.json index 5b75c1b..9371935 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,9 @@ "aldarien/url": "*", "j4mie/paris" : "^1.5", "danielstjules/stringy" : "^3.1", - "phpoffice/phpspreadsheet": "1-beta", + "phpoffice/phpspreadsheet": "^1", "nesbot/carbon": "^2", - "phpoffice/phpword": "^0.14.0", + "phpoffice/phpword": "^0", "slam/php-excel": "^4.4", "fabpot/goutte": "^3.2", "incoviba/modelos": "*", @@ -26,7 +26,7 @@ "vlucas/phpdotenv": "^5.3" }, "require-dev" : { - "phpunit/phpunit" : "^6.3", + "phpunit/phpunit" : "^8", "kint-php/kint" : "^2.1", "filp/whoops" : "^2.1" },