Skip to content

Commit 1741fd2

Browse files
authored
Add Laravel 7.x support (#12)
Add Laravel 7.x support
1 parent 0ce9393 commit 1741fd2

7 files changed

+15
-78
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/tests export-ignore
55
/.gitattributes export-ignore
66
/.gitignore export-ignore
7-
/.php_cs export-ignore
87
/.styleci.yml export-ignore
98
/.travis.yml export-ignore
109
/CODE_OF_CONDUCT.md export-ignore

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
vendor/
2-
.php_cs.cache
32
.phpunit.result.cache
43
composer.lock
54
composer.phar

.php_cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to `cybercog/laravel-youtrack-sdk` will be documented in thi
44

55
## [Unreleased]
66

7+
## [5.2.0] - 2020-03-07
8+
9+
### Added
10+
11+
- ([#12]) Laravel 7 support
12+
713
## [5.1.0] - 2019-09-04
814

915
### Added
@@ -65,7 +71,8 @@ All notable changes to `cybercog/laravel-youtrack-sdk` will be documented in thi
6571

6672
- Initial release
6773

68-
[Unreleased]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.1.0...master
74+
[Unreleased]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.2.0...master
75+
[5.2.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.1.0...5.2.0
6976
[5.1.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/5.0.0...5.1.0
7077
[5.0.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/4.2.0...5.0.0
7178
[4.2.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/4.1.0...4.2.0
@@ -74,4 +81,5 @@ All notable changes to `cybercog/laravel-youtrack-sdk` will be documented in thi
7481
[3.0.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/2.0.0...3.0.0
7582
[2.0.0]: https://github.com/cybercog/laravel-youtrack-sdk/compare/1.0.0...2.0.0
7683

84+
[#12]: https://github.com/cybercog/laravel-youtrack-sdk/pull/12
7785
[#9]: https://github.com/cybercog/laravel-youtrack-sdk/pull/9

CONTRIBUTING.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ Due to time constraints, we are not always able to respond as quickly as we woul
1919

2020
## Coding Guidelines
2121

22-
This project comes with a configuration file for php-cs-fixer (.php_cs) that you can use to (re)format your sourcecode for compliance with this project's coding guidelines:
23-
24-
```sh
25-
$ vendor/bin/php-cs-fixer fix
26-
```
22+
This project follows [PSR-12 coding style guide](https://www.php-fig.org/psr/psr-12/).
2723

2824
## PHPUnit tests
2925

3026
The phpunit script can be used to invoke the PHPUnit test runner:
3127

3228
```sh
33-
$ composer test
29+
$ vendor/bin/phpunit
3430
```
3531

3632
## Reporting issues

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@
3939
"require": {
4040
"php": "^7.1",
4141
"cybercog/youtrack-php-sdk": "^4.0",
42-
"illuminate/support": "5.8.*|^6.0"
42+
"illuminate/support": "^5.8|^6.0|^7.0"
4343
},
4444
"require-dev": {
45-
"friendsofphp/php-cs-fixer": "^2.10",
46-
"orchestra/testbench": "3.8.*|^4.0",
47-
"phpunit/phpunit": "^7.0|^8.0"
45+
"orchestra/testbench": "^3.8|^4.0|^5.0",
46+
"phpunit/phpunit": "^7.0|^8.0|^9.0"
4847
},
4948
"autoload": {
5049
"psr-4": {

src/YouTrackServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function resolveAuthorizerDriver(ConfigContract $config): AuthorizerCont
6767
$authorizer = $config->get('youtrack.authorizer');
6868

6969
$options = $config->get('youtrack.authorizers.' . $authorizer);
70-
if ($authorizer == 'cookie') {
70+
if ($authorizer === 'cookie') {
7171
return new $options['driver'](
7272
new CookieAuthenticator($options['username'], $options['password'])
7373
);

0 commit comments

Comments
 (0)