Skip to content

Commit cd55dd0

Browse files
authored
Merge pull request laravel-notification-channels#60 from irazasyed/support-php7.1
Add PHP 7.1 Support
2 parents 04afca0 + fed782a commit cd55dd0

9 files changed

+18
-15
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor
22
build
33
composer.phar
4-
composer.lock
4+
composer.lock
5+
.phpunit.result.cache

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: php
22

33
php:
4+
- 7.1
45
- 7.2
56
- 7.3
67

@@ -14,7 +15,7 @@ before_script:
1415
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
1516

1617
script:
17-
- phpunit --coverage-text --coverage-clover=coverage.clover
18+
- composer test:coverage
1819

1920
after_script:
2021
- wget https://scrutinizer-ci.com/ocular.phar

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright (c) Syed Irfaq R. <syed@lukonet.com>
3+
Copyright (c) Irfaq Syed <syed@lukonet.com>
44

55
> Permission is hereby granted, free of charge, to any person obtaining a copy
66
> of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
258258

259259
## Credits
260260

261-
- [Syed Irfaq R.][link-author]
261+
- [Irfaq Syed][link-author]
262262
- [All Contributors][link-contributors]
263263

264264
## License

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
"license": "MIT",
1313
"authors": [
1414
{
15-
"name": "Syed Irfaq R.",
15+
"name": "Irfaq Syed",
1616
"email": "syed@lukonet.com",
1717
"homepage": "https://lukonet.com",
1818
"role": "Developer"
1919
}
2020
],
2121
"require": {
22-
"php": "^7.2",
22+
"php": "^7.1",
2323
"guzzlehttp/guzzle": "^6.2",
2424
"illuminate/notifications": "^5.5 || ^6.0",
2525
"illuminate/support": "^5.5 || ^6.0"
2626
},
2727
"require-dev": {
2828
"mockery/mockery": "^1.0",
29-
"phpunit/phpunit": "^8.0"
29+
"phpunit/phpunit": "^7.0 || ^8.0"
3030
},
3131
"autoload": {
3232
"psr-4": {
@@ -39,7 +39,8 @@
3939
}
4040
},
4141
"scripts": {
42-
"test": "vendor/bin/phpunit"
42+
"test": "phpunit",
43+
"test:coverage": "phpunit --coverage-text --coverage-clover=coverage.clover"
4344
},
4445
"config": {
4546
"sort-packages": true

src/Telegram.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace NotificationChannels\Telegram;
44

55
use Exception;
6-
use Illuminate\Support\Str;
76
use GuzzleHttp\Client as HttpClient;
8-
use Psr\Http\Message\ResponseInterface;
97
use GuzzleHttp\Exception\ClientException;
8+
use Illuminate\Support\Str;
109
use NotificationChannels\Telegram\Exceptions\CouldNotSendNotification;
10+
use Psr\Http\Message\ResponseInterface;
1111

1212
/**
1313
* Class Telegram.

tests/TelegramChannelTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace NotificationChannels\Telegram\Test;
44

5-
use Mockery;
6-
use PHPUnit\Framework\TestCase;
75
use Illuminate\Notifications\Notifiable;
86
use Illuminate\Notifications\Notification;
7+
use Mockery;
8+
use NotificationChannels\Telegram\Exceptions\CouldNotSendNotification;
99
use NotificationChannels\Telegram\Telegram;
1010
use NotificationChannels\Telegram\TelegramChannel;
1111
use NotificationChannels\Telegram\TelegramMessage;
12-
use NotificationChannels\Telegram\Exceptions\CouldNotSendNotification;
12+
use PHPUnit\Framework\TestCase;
1313

1414
/**
1515
* Class ChannelTest.

tests/TelegramLocationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace NotificationChannels\Telegram\Test;
44

5-
use PHPUnit\Framework\TestCase;
65
use NotificationChannels\Telegram\TelegramLocation;
6+
use PHPUnit\Framework\TestCase;
77

88
/**
99
* Class TelegramLocationTest.

tests/TelegramMessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace NotificationChannels\Telegram\Test;
44

5-
use PHPUnit\Framework\TestCase;
65
use NotificationChannels\Telegram\TelegramMessage;
6+
use PHPUnit\Framework\TestCase;
77

88
/**
99
* Class TelegramMessageTest.

0 commit comments

Comments
 (0)