Use PHP 8.2 for builds and fixed warning in email validation rule

This commit is contained in:
Igor Scheller 2022-12-10 21:31:20 +01:00 committed by Michael Weimann
parent b4402a5b59
commit 99e7a088b0
3 changed files with 14 additions and 2 deletions

View File

@ -38,7 +38,7 @@ COPY --from=themes /app/public/assets /app/public/assets/
RUN find /app/storage/ -type f -not -name VERSION -exec rm {} \;
# Build the PHP/Nginx container
FROM php:8.1-fpm-alpine
FROM php:8.2-fpm-alpine
WORKDIR /var/www
RUN apk add --no-cache icu-dev nginx && \
docker-php-ext-install intl pdo_mysql && \

View File

@ -1,5 +1,5 @@
# Engelsystem PHP FPM/Nginx development image including Xdebug
FROM php:8.1-fpm-alpine AS es_base
FROM php:8.2-fpm-alpine AS es_base
WORKDIR /var/www
RUN apk add --no-cache icu-dev linux-headers $PHPIZE_DEPS && \
pecl install pcov xdebug && \

View File

@ -0,0 +1,12 @@
<?php
namespace Engelsystem\Http\Validation\Rules;
use Egulias\EmailValidator\EmailValidator;
use Respect\Validation\Rules\Email as RespectEmail;
class Email extends RespectEmail
{
// Fix for "Creation of dynamic property $emailValidator is deprecated" warning in PHP 8.2
public ?EmailValidator $emailValidator;
}