Skip to content

Commit

Permalink
Update to PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias committed Jul 17, 2021
1 parent 2706684 commit 49a2203
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
language: php

## Run on container environment
sudo: false
git:
depth: 2

env:
- COMPOSER_DISABLE_XDEBUG_WARN=1

php:
- 7.2
- 7.3
- 7.4

before_install:
- composer self-update
- 8.0
- nightly

install:
- composer install --prefer-dist
- composer install --prefer-dist --no-interaction --optimize-autoloader --no-progress

script:
- vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php_cs
- vendor/bin/php-cs-fixer fix --dry-run --diff
- vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Wrapper Nominatim API
================

[![Latest Stable Version](https://poser.pugx.org/maxh/php-nominatim/v/stable)](https://packagist.org/packages/maxh/php-nominatim)
[![Build Status](https://travis-ci.org/maxhelias/php-nominatim.svg?branch=master)](https://travis-ci.org/maxhelias/php-nominatim)
[![Build Status](https://travis-ci.com/maxhelias/php-nominatim.svg?branch=master)](https://travis-ci.com/maxhelias/php-nominatim)
[![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)
[![Total Downloads](https://poser.pugx.org/maxh/php-nominatim/downloads)](https://packagist.org/packages/maxh/php-nominatim)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/maxhelias/php-nominatim/blob/master/LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.3",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "@stable"
},
Expand Down
13 changes: 0 additions & 13 deletions examples/DetailsExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

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

use maxh\Nominatim\Consts;
use maxh\Nominatim\Nominatim;

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

var_dump($result);

//Details by osm type and osm id
$details = $instance->newDetails()
->osmId(Consts\OsmTypes::RELATIVE, 2555133)
;

$result = $instance->find($details);

echo "Details by osm type and osm id\n";
echo 'URL : '.$url.$details->getPath().'?'.$details->getQueryString()."\n";

var_dump($result);
} catch (\maxh\Nominatim\Exceptions\InvalidParameterException $e) {
// If you set invalid parameter in instance
var_dump($e->getMessage());
Expand Down

0 comments on commit 49a2203

Please sign in to comment.