Use PHP 8.2 for builds and fixed warning in email validation rule
This commit is contained in:
parent
b4402a5b59
commit
99e7a088b0
|
@ -38,7 +38,7 @@ COPY --from=themes /app/public/assets /app/public/assets/
|
||||||
RUN find /app/storage/ -type f -not -name VERSION -exec rm {} \;
|
RUN find /app/storage/ -type f -not -name VERSION -exec rm {} \;
|
||||||
|
|
||||||
# Build the PHP/Nginx container
|
# Build the PHP/Nginx container
|
||||||
FROM php:8.1-fpm-alpine
|
FROM php:8.2-fpm-alpine
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
RUN apk add --no-cache icu-dev nginx && \
|
RUN apk add --no-cache icu-dev nginx && \
|
||||||
docker-php-ext-install intl pdo_mysql && \
|
docker-php-ext-install intl pdo_mysql && \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Engelsystem PHP FPM/Nginx development image including Xdebug
|
# 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
|
WORKDIR /var/www
|
||||||
RUN apk add --no-cache icu-dev linux-headers $PHPIZE_DEPS && \
|
RUN apk add --no-cache icu-dev linux-headers $PHPIZE_DEPS && \
|
||||||
pecl install pcov xdebug && \
|
pecl install pcov xdebug && \
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue