Skip to content

Commit 2fa2698

Browse files
committed
Added PHP 8.0 support
1 parent 89f8c6c commit 2fa2698

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 7.2
54
- 7.3
65
- 7.4
6+
- 8.0
77

88
sudo: false
99

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
All Notable changes to `json-csv` will be documented in this file.
44

5+
## 0.4.0
6+
- Remove support for PHP 7.2.
7+
- Added PHP 8.0 support.
8+
9+
## 0.3.0
10+
- Remove support for PHP 7.1.
11+
- Added utf-8 support for csv conversion.
12+
513
## 0.2.0
6-
- Remove support for PHP 7.0
14+
- Remove support for PHP 7.0.
715
- Better CSV to JSON conversion method.
816

917
## 0.1.1

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php" : "~7.2",
14+
"php": "^7.3|^8.0",
1515
"ext-json": "*"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit" : "~7.0|~8.0",
18+
"phpunit/phpunit" : "~8.0|~9.0",
1919
"squizlabs/php_codesniffer": "~3.5"
2020
},
2121
"autoload": {

tests/CsvTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ public function testConversionAndSave()
5353
$json = '{"SL":"6.3","SW":"3.3","PL":"6.0","PW":"2.5","Name":"Iris-virginica"}';
5454
$this->assertStringContainsString($json, file_get_contents($path));
5555
unlink($path);
56-
$this->assertFileNotExists($path);
56+
$this->assertFileDoesNotExist($path);
5757
}
5858
}

tests/JsonReverseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ private function checkReverseConversion($file, $join = '_')
2727
$this->assertJsonFileEqualsJsonFile($this->path($file, 'json'), $pathJsonOut);
2828
} finally {
2929
unlink($pathCsvOut);
30-
$this->assertFileNotExists($pathCsvOut);
30+
$this->assertFileDoesNotExist($pathCsvOut);
3131
unlink($pathJsonOut);
32-
$this->assertFileNotExists($pathJsonOut);
32+
$this->assertFileDoesNotExist($pathJsonOut);
3333
}
3434
}
3535

tests/JsonTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ public function testConversionAndSave()
7575
$this->assertFileExists($path);
7676
$this->assertStringContainsString("Turkey,\"Republic of Turkey\",Türkiye,783562,39,35\n", file_get_contents($path));
7777
unlink($path);
78-
$this->assertFileNotExists($path);
78+
$this->assertFileDoesNotExist($path);
7979
}
8080
}

0 commit comments

Comments
 (0)