Skip to content

Commit

Permalink
Merge pull request #79 from koriym/php8
Browse files Browse the repository at this point in the history
PHP 8.0 support
  • Loading branch information
odan committed May 31, 2021
2 parents f29d6bc + 8f1a0d4 commit a7aa0cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4']
php-versions: ['7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"homepage": "https://github.com/selective-php/image-type",
"license": "MIT",
"require": {
"php": "^7.2"
"php": "^7.2 || ^8.0"
},
"require-dev": {
"overtrue/phplint": "^1.1",
"phpunit/phpunit": "^8",
"phpstan/phpstan-shim": "^0.11",
"phpstan/phpstan": "^0.12",
"squizlabs/php_codesniffer": "^3.4"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tests/ImageTypeDetectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testGetImageTypeFromFile(string $file, string $format, string $m
/**
* Provider.
*
* @return array
* @return array<int, array<int, string>>
*/
public function providerGetImageTypeFromFile(): array
{
Expand Down

0 comments on commit a7aa0cf

Please sign in to comment.