Skip to content

Enable PHP 8.0 support (1) #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Common/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
language: php

php: 7.2
matrix:
fast_finish: true
include:
- php: 7.3
- php: 7.4
- php: 8.0

install:
- composer update --prefer-stable --prefer-dist
Expand Down
48 changes: 30 additions & 18 deletions src/Common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.

## 4.4.0

### Added

- Add support for PHP 8.0

### Removed

- Drop support for PHP 7.2

### Changed

- Upgrade PHPUnit to version 9

## 4.3.0

### Removed
Expand All @@ -17,7 +31,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee

### Fixed

- Fix building ProviderNotRegistered exception message
- Fix building ProviderNotRegistered exception message

## 4.2.1

Expand All @@ -33,17 +47,17 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee

### Fixed

- Bug in `StatefulGeocoder` where different locale or bounds did not have any effect.
- Bug in `StatefulGeocoder` where different locale or bounds did not have any effect.

## 4.1.0

### Changed

- Make sure a `Country` never will be empty of data.
- Make sure a `Country` never will be empty of data.

## 4.0.0

No changes since Beta 5.
No changes since Beta 5.

## 4.0.0 - Beta 5

Expand All @@ -60,40 +74,38 @@ No changes since Beta 5.

## 4.0.0 - Beta 3

### Added
### Added

- The constructor of `ProvierAggregator` will accept a callable that can decide what providers should be used for a specific query.
- The constructor of `ProvierAggregator` will accept a callable that can decide what providers should be used for a specific query.

### Changed

- `ProvierAggregator::getProvider` is now private
- `ProvierAggregator::limit` was removed
- `ProvierAggregator::getLimit` was removed
- `ProvierAggregator::__constructor` changed the order of the parameters.
- `ProvierAggregator` is not final.

- `ProvierAggregator::__constructor` changed the order of the parameters.
- `ProvierAggregator` is not final.

## 4.0.0 - Beta 2

### Added

- PHP7 type hints.
- PHP7 type hints.
- `AbstractArrayDumper` and `AbstractDumper`
- `LogicException` and `OutOfBounds`
- `GeocodeQuery::__toString` and `ReverseQuery::__toString`

### Changed

- All Dumpers are now final.
- All Exceptions are now final.
- `AddressCollection` is now final.
- `ProviderAggregator` is now final.
- `StatefulGeocoder` is now final.
- `TimedGeocoder` is now final.
- All Dumpers are now final.
- All Exceptions are now final.
- `AddressCollection` is now final.
- `ProviderAggregator` is now final.
- `StatefulGeocoder` is now final.
- `TimedGeocoder` is now final.
- `ProviderAggregator::getName()` will return "provider_aggregator"
- `TimedGeocoder::getName()` will return "timed_geocoder"


## 4.0.0 - Beta1

First release of this library.
First release of this library.
2 changes: 1 addition & 1 deletion src/Common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require-dev": {
"nyholm/nsa": "^1.1",
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^9.5",
"symfony/stopwatch": "~2.5"
},
"suggest": {
Expand Down
48 changes: 22 additions & 26 deletions src/Common/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
</php>

<testsuites>
<testsuite name="Geocoder Test Suite">
<directory>./Tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<coverage>
<include>
<directory>./</directory>
</include>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="Geocoder Test Suite">
<directory>./Tests/</directory>
</testsuite>
</testsuites>
</phpunit>
7 changes: 6 additions & 1 deletion src/Http/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
language: php

php: 7.2
matrix:
fast_finish: true
include:
- php: 7.3
- php: 7.4
- php: 8.0

install:
- composer update --prefer-stable --prefer-dist
Expand Down
20 changes: 17 additions & 3 deletions src/Http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.

## 4.4.0

### Added

- Add support for PHP 8.0

### Removed

- Drop support for PHP 7.2

### Changed

- Upgrade PHPUnit to version 9

## 4.3.0

### Removed
Expand All @@ -19,14 +33,14 @@ got `AbstractHttpProvider::getUrlContents`, `AbstractHttpProvider::getRequest` a

## 4.0.0

No changes since beta 2.
No changes since beta 2.

## 4.0.0-beta2

- Removed `AbstractHttpProvider::setMessageFactory`.
- Removed `AbstractHttpProvider::getHttpClient`.
- Make sure we have a `MessageFactory` in the constructor of `AbstractHttpProvider`.
- Make sure we have a `MessageFactory` in the constructor of `AbstractHttpProvider`.

## 4.0.0-beta1

First release of this library.
First release of this library.
2 changes: 1 addition & 1 deletion src/Http/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"nyholm/psr7": "^1.0",
"php-http/message": "^1.0",
"php-http/mock-client": "^1.0",
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^9.5",
"symfony/stopwatch": "~2.5"
},
"extra": {
Expand Down
48 changes: 22 additions & 26 deletions src/Http/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
</php>

<testsuites>
<testsuite name="Geocoder Test Suite">
<directory>./Tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<coverage>
<include>
<directory>./</directory>
</include>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="Geocoder Test Suite">
<directory>./Tests/</directory>
</testsuite>
</testsuites>
</phpunit>
7 changes: 6 additions & 1 deletion src/Plugin/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
language: php

php: 7.2
matrix:
fast_finish: true
include:
- php: 7.3
- php: 7.4
- php: 8.0

install:
- composer update --prefer-stable --prefer-dist
Expand Down
20 changes: 17 additions & 3 deletions src/Plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.

## 1.3.0

### Added

- Add support for PHP 8.0

### Removed

- Drop support for PHP 7.2

### Changed

- Upgrade PHPUnit to version 9

## 1.2.0

### Removed
Expand All @@ -10,10 +24,10 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee

## 1.1.0

### Added
### Added

- Support for setting permission on the cache plugin.
- Support for setting permission on the cache plugin.

## 1.0.0

First release of this library.
First release of this library.
2 changes: 1 addition & 1 deletion src/Plugin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require-dev": {
"cache/void-adapter": "^1.0",
"phpunit/phpunit": "^7.5"
"phpunit/phpunit": "^9.5"
},
"extra": {
"branch-alias": {
Expand Down
48 changes: 22 additions & 26 deletions src/Plugin/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
</php>

<testsuites>
<testsuite name="Geocoder Test Suite">
<directory>./Tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<coverage>
<include>
<directory>./</directory>
</include>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="Geocoder Test Suite">
<directory>./Tests/</directory>
</testsuite>
</testsuites>
</phpunit>
Loading