Skip to content

Commit 764b808

Browse files
committed
update version for php8
1 parent 3d312b1 commit 764b808

15 files changed

+3328
-780
lines changed

.php-cs-fixer.dist.php

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
$header = <<<EOF
4+
This file is part of the Runalyze DEM Reader.
5+
6+
(c) RUNALYZE <mail@runalyze.com>
7+
8+
This source file is subject to the MIT license that is bundled
9+
with this source code in the file LICENSE.
10+
EOF;
11+
12+
return (new PhpCsFixer\Config())
13+
->setRiskyAllowed(true)
14+
->setRules([
15+
'header_comment' => [
16+
'header' => $header
17+
],
18+
'ordered_imports' => true,
19+
'php_unit_construct' => true,
20+
'strict_comparison' => true,
21+
'strict_param' => true,
22+
'phpdoc_separation' => false,
23+
])
24+
->setFinder(
25+
PhpCsFixer\Finder::create()
26+
->in(__DIR__.DIRECTORY_SEPARATOR.'src')
27+
)
28+
;

.php_cs

-27
This file was deleted.

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
language: php
22

33
php:
4-
- 5.5
5-
- 5.6
6-
- 7.0
4+
- 8.0
75

86
sudo: false
97

bin/download-testfiles.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ for file in srtm_38_03 srtm_38_02 srtm_67_19 srtm_36_02 srtm_40_17 srtm_22_04
77
do
88
if [ ! -f tests/testfiles/${file}.tif ]
99
then
10-
curl http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/${file}.zip > tests/testfiles/${file}.zip
10+
curl https://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/${file}.zip > tests/testfiles/${file}.zip
1111
unzip -o tests/testfiles/${file}.zip ${file}.tif -d tests/testfiles
1212
rm -rf tests/testfiles/${file}.zip
1313
fi

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "runalyze/dem-reader",
33
"description": "Read digital elevation files such as GeoTIFF files for srtm data or similar.",
4+
"version": "1.2.0",
45
"license": "MIT",
56
"require": {
6-
"php": ">=5.5.9"
7+
"php": ">=8.0"
78
},
89
"require-dev": {
9-
"phpunit/phpunit": "4.8.*",
10-
"friendsofphp/php-cs-fixer": "^1.11"
10+
"phpunit/phpunit": "^9.0",
11+
"friendsofphp/php-cs-fixer": "^3.2"
1112
},
1213
"autoload": {
1314
"psr-4": {

0 commit comments

Comments
 (0)