-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from AngryBytes/feat/php80
PHP 8.0 support
- Loading branch information
Showing
17 changed files
with
169 additions
and
126 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: [push] | ||
name: PHP checks | ||
jobs: | ||
composer-check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.3', '7.4', '8.0'] | ||
name: PHP ${{ matrix.php-versions }} tests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: cs2pr | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
|
||
- name: Run Composer install | ||
run: composer install --prefer-dist | ||
|
||
- name: Run PHP checks | ||
run: composer phpcheck | ||
|
||
- name: Run PHPUnit | ||
run: composer phpunit |
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,2 +1,3 @@ | ||
.phpunit.* | ||
composer.lock | ||
vendor |
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
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,30 +1,44 @@ | ||
{ | ||
"name": "angrybytes/hash", | ||
"description": "Object Oriented hash interface", | ||
"authors": [ | ||
{ | ||
"name": "Angry Bytes BV", | ||
"email": "[email protected]", | ||
"role": "owner", | ||
"homepage": "http://angrybytes.com/" | ||
}, | ||
{ | ||
"name": "Maurice Fonk", | ||
"email": "[email protected]", | ||
"role": "developer" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-0": { | ||
"AngryBytes\\Hash": "src" | ||
} | ||
}, | ||
"require": { | ||
"php": "~5.6 || ~7.0" | ||
"name": "angrybytes/hash", | ||
"description": "Object Oriented hash interface", | ||
"authors": [ | ||
{ | ||
"name": "Angry Bytes BV", | ||
"email": "[email protected]", | ||
"role": "owner", | ||
"homepage": "http://angrybytes.com/" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit" : "~5.4.0" | ||
{ | ||
"name": "Maurice Fonk", | ||
"email": "[email protected]", | ||
"role": "developer" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-0": { | ||
"AngryBytes\\Hash": "src" | ||
} | ||
}, | ||
"scripts": { | ||
"phpcheck": [ | ||
"./vendor/bin/phpstan analyse -l max --memory-limit=1G src/", | ||
"./vendor/bin/phpcs -p --standard=PSR2 --extensions=php src/" | ||
], | ||
"phpcbf": [ | ||
"./vendor/bin/phpcbf -p --standard=PSR2 --extensions=php src/" | ||
], | ||
"phpunit": [ | ||
"./vendor/bin/phpunit" | ||
] | ||
}, | ||
"require": { | ||
"php": "7.3.* || 7.4.* || 8.0.*" | ||
}, | ||
"require-dev": { | ||
"phpstan/phpstan": "0.12.85", | ||
"phpunit/phpunit": "^9.5.4", | ||
"squizlabs/php_codesniffer": "^3.6.0" | ||
} | ||
} |
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,8 @@ | ||
parameters: | ||
reportUnmatchedIgnoredErrors: false | ||
ignoreErrors: | ||
- | ||
message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" | ||
count: 1 | ||
path: src/AngryBytes/Hash/Hasher/Password.php | ||
|
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
Oops, something went wrong.