Skip to content

Commit 49a2203

Browse files
committed
Update to PHP 7.3
1 parent 2706684 commit 49a2203

File tree

4 files changed

+8
-23
lines changed

4 files changed

+8
-23
lines changed

.travis.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
language: php
22

3-
## Run on container environment
4-
sudo: false
3+
git:
4+
depth: 2
55

66
env:
77
- COMPOSER_DISABLE_XDEBUG_WARN=1
88

99
php:
10-
- 7.2
1110
- 7.3
1211
- 7.4
13-
14-
before_install:
15-
- composer self-update
12+
- 8.0
13+
- nightly
1614

1715
install:
18-
- composer install --prefer-dist
16+
- composer install --prefer-dist --no-interaction --optimize-autoloader --no-progress
1917

2018
script:
21-
- vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php_cs
19+
- vendor/bin/php-cs-fixer fix --dry-run --diff
2220
- vendor/bin/phpunit --coverage-clover=coverage.clover
2321

2422
after_script:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Wrapper Nominatim API
22
================
33

44
[![Latest Stable Version](https://poser.pugx.org/maxh/php-nominatim/v/stable)](https://packagist.org/packages/maxh/php-nominatim)
5-
[![Build Status](https://travis-ci.org/maxhelias/php-nominatim.svg?branch=master)](https://travis-ci.org/maxhelias/php-nominatim)
5+
[![Build Status](https://travis-ci.com/maxhelias/php-nominatim.svg?branch=master)](https://travis-ci.com/maxhelias/php-nominatim)
66
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/maxhelias/php-nominatim/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/maxhelias/php-nominatim/?branch=master)
77
[![Total Downloads](https://poser.pugx.org/maxh/php-nominatim/downloads)](https://packagist.org/packages/maxh/php-nominatim)
88
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/maxhelias/php-nominatim/blob/master/LICENSE)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=7.2",
17+
"php": ">=7.3",
1818
"ext-mbstring": "*",
1919
"guzzlehttp/guzzle": "@stable"
2020
},

examples/DetailsExample.php

-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
require '../vendor/autoload.php';
1313

14-
use maxh\Nominatim\Consts;
1514
use maxh\Nominatim\Nominatim;
1615

1716
//URL Server
@@ -34,18 +33,6 @@
3433
echo 'URL : '.$url.$details->getPath().'?'.$details->getQueryString()."\n";
3534

3635
var_dump($result);
37-
38-
//Details by osm type and osm id
39-
$details = $instance->newDetails()
40-
->osmId(Consts\OsmTypes::RELATIVE, 2555133)
41-
;
42-
43-
$result = $instance->find($details);
44-
45-
echo "Details by osm type and osm id\n";
46-
echo 'URL : '.$url.$details->getPath().'?'.$details->getQueryString()."\n";
47-
48-
var_dump($result);
4936
} catch (\maxh\Nominatim\Exceptions\InvalidParameterException $e) {
5037
// If you set invalid parameter in instance
5138
var_dump($e->getMessage());

0 commit comments

Comments
 (0)