Skip to content

Commit 7d4e65f

Browse files
authored
Merge pull request #14 from lion-packages/support
PHP 8.3 support
2 parents f042a19 + 128199a commit 7d4e65f

File tree

11 files changed

+1034
-46
lines changed

11 files changed

+1034
-46
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/vendor/
22
.phpunit.result.cache
3+
/tests/build/coverage/*
4+
!/tests/build/coverage/.gitignore
5+
/tests/build/logs/*
6+
!/tests/build/logs/.gitignore

Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ RUN useradd -m lion && echo 'lion:lion' | chpasswd && usermod -aG sudo lion && u
55
RUN apt-get update -y \
66
&& apt-get install -y nano curl wget unzip sendmail libpng-dev libzip-dev \
77
&& apt-get install -y zlib1g-dev libonig-dev supervisor libevent-dev libssl-dev \
8-
&& pecl install ev \
8+
&& pecl install ev xdebug \
99
&& rm -rf /var/lib/apt/lists/*
1010

11-
RUN docker-php-ext-install mbstring gd pdo_mysql mysqli zip \
12-
&& docker-php-ext-enable gd zip
11+
RUN docker-php-ext-install mbstring gd zip \
12+
&& docker-php-ext-enable gd zip xdebug
13+
14+
# Configure Xdebug
15+
RUN echo "xdebug.mode=develop,coverage,debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
16+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
17+
&& echo "xdebug.remote_connect_back=off" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
18+
&& echo "xdebug.start_with_request=yes" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
19+
&& echo "xdebug.idekey=docker" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
20+
&& echo "xdebug.log=/dev/stdout" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
21+
&& echo "xdebug.log_level=0" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
22+
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
23+
&& echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
1324

1425
RUN a2enmod rewrite \
1526
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
},
1616
"require": {
17-
"php": ">=8.2",
17+
"php": ">=8.3",
1818
"phroute/phroute": "^2.2",
1919
"php-di/php-di": "^7.0",
2020
"lion/dependency-injection": "^1.5"
@@ -23,6 +23,7 @@
2323
"guzzlehttp/guzzle": "^7.8",
2424
"lion/test": "^2.0",
2525
"phpunit/phpunit": "^11.1",
26-
"lion/exceptions": "^1.1"
26+
"lion/exceptions": "^1.1",
27+
"robiningelbrecht/phpunit-pretty-print": "^1.3"
2728
}
2829
}

0 commit comments

Comments
 (0)