Skip to content
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

Support PHP 8.0 and drop PHP 5.6, 7.0, 7.1 and 7.2 #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
.idea
/vendor/
/composer.lock

.phpunit.result.cache
*.swp
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- nightly

cache:
directories:
Expand All @@ -20,5 +20,5 @@ script:

# Execute PHPUnit tests
- composer install --prefer-dist
- vendor/bin/phpunit --coverage-text
- XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text
- composer lint
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

This is an extremely simple PHP [DogStatsD](https://docs.datadoghq.com/developers/dogstatsd/?tab=php) client.

**Requires PHP >= 5.6.0.**
**Requires PHP >= 7.3.0.**

See [CHANGELOG.md](CHANGELOG.md) for changes.

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=5.6.0",
"php": ">=7.3.0",
"ext-curl": "*",
"lib-curl": "*",
"ext-sockets": "*"
Expand Down Expand Up @@ -49,7 +49,7 @@
"sort-packages": true
},
"require-dev": {
"phpunit/phpunit": "5.7.27",
"phpunit/phpunit": "8.5.15",
"squizlabs/php_codesniffer": "^3.3"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tests/TestHelpers/CurlSpyTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CurlSpyTestCase extends TestCase
/**
* Set up a spy object to capture calls to built in curl functions
*/
protected function setUp()
protected function setUp(): void
{
global $curlSpy;

Expand Down
2 changes: 1 addition & 1 deletion tests/TestHelpers/SocketSpyTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SocketSpyTestCase extends TestCase
/**
* Set up a spy object to capture calls to global built in socket functions
*/
protected function setUp()
protected function setUp(): void
{
global $socketSpy;

Expand Down
2 changes: 1 addition & 1 deletion tests/UnitTests/BatchedDogStatsdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class BatchedDogStatsdTest extends SocketSpyTestCase
{
protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/UnitTests/DogStatsd/SocketsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class SocketsTest extends SocketSpyTestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down