1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:44:02 +00:00

bump php version

This commit is contained in:
Samuel Štancl 2024-12-26 05:51:46 +01:00
parent 855ba91508
commit 5777ff850f
4 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.4'
- uses: actions/checkout@v2
- name: Install composer dependencies
run: composer install

View file

@ -1,4 +1,4 @@
ARG PHP_VERSION=8.3
ARG PHP_VERSION=8.4
FROM php:${PHP_VERSION}-cli-bookworm
SHELL ["/bin/bash", "-c"]

View file

@ -4,7 +4,7 @@
1. Login in to Docker Hub: `docker login -u archtechx`
1. Shut down containers: `composer docker-down`
1. Build the image: `DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build --no-cache`
1. Build the image: `DOCKER_DEFAULT_PLATFORM=linux/amd64 docker compose build --no-cache`
1. Start containers again, using the amd64 image for the `test` service: `composer docker-up`
1. Verify that tests pass on the new image: `composer test`
1. Tag a new image: `docker tag tenancy-test archtechx/tenancy:latest`

View file

@ -280,7 +280,7 @@ class TestJob implements ShouldQueue
/** @var User|null */
protected $user;
public function __construct(Valuestore $valuestore, User $user = null)
public function __construct(Valuestore $valuestore, ?User $user = null)
{
$this->valuestore = $valuestore;
$this->user = $user;