Skip to content

Commit a7aa0cf

Browse files
authored
Merge pull request #79 from koriym/php8
PHP 8.0 support
2 parents f29d6bc + 8f1a0d4 commit a7aa0cf

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ubuntu-latest]
11-
php-versions: ['7.2', '7.3', '7.4']
11+
php-versions: ['7.2', '7.3', '7.4', '8.0']
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"homepage": "https://github.com/selective-php/image-type",
1111
"license": "MIT",
1212
"require": {
13-
"php": "^7.2"
13+
"php": "^7.2 || ^8.0"
1414
},
1515
"require-dev": {
1616
"overtrue/phplint": "^1.1",
1717
"phpunit/phpunit": "^8",
18-
"phpstan/phpstan-shim": "^0.11",
18+
"phpstan/phpstan": "^0.12",
1919
"squizlabs/php_codesniffer": "^3.4"
2020
},
2121
"scripts": {

tests/ImageTypeDetectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testGetImageTypeFromFile(string $file, string $format, string $m
6666
/**
6767
* Provider.
6868
*
69-
* @return array
69+
* @return array<int, array<int, string>>
7070
*/
7171
public function providerGetImageTypeFromFile(): array
7272
{

0 commit comments

Comments
 (0)