-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was merged into the 1.0-dev branch. labels: bc-break Discussion ---------- | Q | A | ------------- | --- | Bug fix? | yes | New feature? | yes | BC breaks? | yes | Deprecations? | no | Fixed tickets | | License | MIT Dropped support for PHP 8.1 (8.2 is minimum now), modernized the code base and hardened against cases of misuse. Secondly, it's now easier to set an expiration for a token. Commits ------- b3d85d3 Clean-up old files 92ba66a Modernize readme 42824fc Drop support for PHP 7/8.1 2f9e1af Correct CS 830a1f9 Allow easier expiration handling 79f0ea9 Add upgrade instructions - replaces changelog 8015b98 Fix PHPStan errors a8a131a Update GitHub workflows 4281795 Update README.md
- Loading branch information
Showing
27 changed files
with
729 additions
and
613 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
# Always use LF | ||
core.autocrlf=lf | ||
|
||
/doc export-ignore | ||
/tests export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
CODE_OF_CONDUCT.md export-ignore | ||
.github export-ignore | ||
.php-cs-fixer.dist.php export-ignore | ||
CODE_OF_CONDUCT.md export-ignore | ||
Makefile export-ignore | ||
phpunit.xml.dist export-ignore | ||
phpcs.xml.dist export-ignore | ||
phpstan.neon export-ignore | ||
psalm.xml export-ignore | ||
Makefile export-ignore | ||
phpstan-baseline.neon export-ignore | ||
tests/ export-ignore |
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,5 +1,9 @@ | ||
composer.lock | ||
/vendor/ | ||
/composer.lock | ||
/phpcs.xml | ||
/var/ | ||
|
||
phpunit.xml | ||
.phpunit.result.cache | ||
.phpunit.cache/ | ||
.phpunit | ||
|
||
.php-cs-fixer.cache |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
$header = <<<EOF | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
EOF; | ||
|
||
/** @var \Symfony\Component\Finder\Finder $finder */ | ||
$finder = PhpCsFixer\Finder::create(); | ||
$finder | ||
->in([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]); | ||
|
||
$config = new PhpCsFixer\Config(); | ||
$config | ||
->setRiskyAllowed(true) | ||
->setRules( | ||
array_merge( | ||
require __DIR__ . '/vendor/rollerscapes/standards/php-cs-fixer-rules.php', | ||
['header_comment' => ['header' => $header]]) | ||
) | ||
->setFinder($finder); | ||
|
||
return $config; |
This file was deleted.
Oops, something went wrong.
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,55 +1,4 @@ | ||
ifndef BUILD_ENV | ||
BUILD_ENV=php7.2 | ||
endif | ||
|
||
QA_DOCKER_IMAGE=jakzal/phpqa:1.34.1-php7.4-alpine | ||
QA_DOCKER_COMMAND=docker run --init -t --rm --user "$(shell id -u):$(shell id -g)" --env "COMPOSER_HOME=/composer" --volume /tmp/tmp-phpqa-$(shell id -u):/tmp:delegated --volume "$(shell pwd):/project:delegated" --volume "${HOME}/.composer:/composer:delegated" --workdir /project ${QA_DOCKER_IMAGE} | ||
|
||
install: composer-install | ||
dist: composer-validate cs phpstan psalm test | ||
ci: check test | ||
check: composer-validate cs-check phpstan psalm | ||
test: phpunit-coverage | ||
|
||
clean: | ||
rm -rf var/ | ||
|
||
composer-validate: ensure | ||
sh -c "${QA_DOCKER_COMMAND} composer validate" | ||
|
||
composer-install: fetch ensure clean | ||
sh -c "${QA_DOCKER_COMMAND} composer upgrade" | ||
|
||
composer-install-lowest: fetch ensure clean | ||
sh -c "${QA_DOCKER_COMMAND} composer upgrade --prefer-lowest" | ||
|
||
composer-install-dev: fetch ensure clean | ||
rm -f composer.lock | ||
cp composer.json _composer.json | ||
sh -c "${QA_DOCKER_COMMAND} composer config minimum-stability dev" | ||
sh -c "${QA_DOCKER_COMMAND} composer upgrade --no-progress --no-interaction --no-suggest --optimize-autoloader --ansi" | ||
mv _composer.json composer.json | ||
|
||
cs: | ||
sh -c "${QA_DOCKER_COMMAND} php vendor/bin/phpcbf" | ||
|
||
cs-check: | ||
sh -c "${QA_DOCKER_COMMAND} php vendor/bin/phpcs" | ||
|
||
phpstan: ensure | ||
sh -c "${QA_DOCKER_COMMAND} phpstan analyse" | ||
|
||
psalm: ensure | ||
sh -c "${QA_DOCKER_COMMAND} psalm --show-info=false" | ||
|
||
phpunit-coverage: ensure | ||
sh -c "${QA_DOCKER_COMMAND} phpdbg -qrr vendor/bin/phpunit --verbose --coverage-text --log-junit=var/phpunit.junit.xml --coverage-xml var/coverage-xml/" | ||
include vendor/rollerscapes/standards/Makefile | ||
|
||
phpunit: | ||
sh -c "${QA_DOCKER_COMMAND} phpunit --verbose" | ||
|
||
ensure: | ||
mkdir -p ${HOME}/.composer /tmp/tmp-phpqa-$(shell id -u) | ||
|
||
fetch: | ||
docker pull "${QA_DOCKER_IMAGE}" | ||
./vendor/bin/phpunit |
Oops, something went wrong.