Skip to content

Commit

Permalink
Bump Dev PHP to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ebln committed Jun 2, 2024
1 parent 7a70e22 commit 17a7d75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .provision/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM php:7.4-cli
FROM php:8.0-cli

COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

RUN apt-get update \
&& apt-get install -y git nano zip unzip zlib1g-dev libzip-dev \
&& pecl install -o xdebug-3.0.4 \
&& pecl install -o xdebug \
&& docker-php-ext-enable xdebug \
&& apt-get -y autoremove \
&& apt-get clean \
Expand Down
5 changes: 2 additions & 3 deletions .provision/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
version: '3.6'
services:
php:
build:
context: .
image: php7.4-cli/phpstan-factory-rule
image: php8.0-cli/phpstan-factory-rule
volumes:
- ./..:/var/www
extra_hosts:
- "host.docker.internal:${XDEBUG_REMOTE_HOST:-127.0.0.1}"
environment:
PHP_IDE_CONFIG: "serverName=php-cli-74.local"
PHP_IDE_CONFIG: "serverName=php-cli-80.local"
1 change: 1 addition & 0 deletions src/ForceFactoryRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function processNode(Node $node, Scope $scope): array

continue;
}

/** @psalm-suppress PossiblyNullReference | sad that even phpstan cannot infer that from isInClass */
if (
$scope->isInClass()
Expand Down

0 comments on commit 17a7d75

Please sign in to comment.