-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump development version to 8.0. Rule supports 7.4 - 8.3 (#6)
* Bump dependencies - require php >=7.4 - require phpstan ^1.11 - deal with deprecated TypeUtils::* * Fix CI * Bump Dev PHP to 8.0 * Full blown CI
- Loading branch information
Showing
7 changed files
with
1,537 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
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 \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* /tmp/pear/* \ | ||
&& groupadd --gid 1000 app \ | ||
&& useradd --uid 1000 --gid app --shell /bin/bash --create-home app \ | ||
&& touch /var/log/xdebug.log && chgrp 1000 /var/log/xdebug.log && chmod g+w /var/log/xdebug.log \ | ||
&& sed -i -e '/alias l\|export\|eval/s/#//' /root/.bashrc \ | ||
&& mkdir --parents /var/www/src /var/www/tests \ | ||
&& chown 1000:1000 /var/www/src /var/www/tests \ | ||
&& true | ||
COPY 30-xdebug-config.ini /usr/local/etc/php/conf.d/ | ||
|
||
ENV PATH "$PATH:/home/app/.composer/vendor/bin" | ||
ENV PATH "$PATH:/root/.composer/vendor/bin" | ||
|
||
RUN composer global require friendsofphp/php-cs-fixer \ | ||
&& sed -i -e '/alias l\|export\|eval/s/#//' /home/app/.bashrc | ||
&& sed -i -e '/alias l\|export\|eval/s/#//' /root/.bashrc | ||
|
||
# WORKDIR /home/app/ # TODO app dir or var/www !? | ||
WORKDIR /var/www/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"name": "ebln/phpstan-factory-rule", | ||
"type": "phpstan-extension", | ||
"description": "PHPStan rule to enforce instanciation by factories", | ||
"license": "MIT", | ||
"type": "phpstan-extension", | ||
"authors": [ | ||
{ | ||
"name": "ebln", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": "7.4 - 8.3", | ||
"php": "7.4 - 8.4", | ||
"ebln/phpstan-factory-mark": "^1.1", | ||
"phpstan/phpstan": "^0.12 || ^1" | ||
"phpstan/phpstan": "^1.11" | ||
}, | ||
"require-dev": { | ||
"ergebnis/composer-normalize": "^2.15", | ||
|
@@ -21,6 +21,16 @@ | |
"roave/security-advisories": "dev-latest", | ||
"vimeo/psalm": "^4.12" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Ebln\\PHPStan\\EnforceFactory\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Test\\Ebln\\PHPStan\\EnforceFactory\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"ergebnis/composer-normalize": true | ||
|
@@ -34,16 +44,6 @@ | |
] | ||
} | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Ebln\\PHPStan\\EnforceFactory\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Test\\Ebln\\PHPStan\\EnforceFactory\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"coverage": "XDEBUG_MODE=coverage phpunit --coverage-html coverage --coverage-text --colors=auto && chown -R 1000:1000 coverage", | ||
"quality": [ | ||
|
Oops, something went wrong.