Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 3cdef56

Browse files
Add Laravel 6.0 support (drops L5.7 and older) (#11)
* Add Laravel 6.0 support (drops L5.7 and older) Older Laravel versions can use prior versions of this package
1 parent 1e2aed0 commit 3cdef56

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.scrutinizer.yml

+9
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ tools:
3131
php_cpd:
3232
enabled: true
3333
excluded_dirs: [vendor, tests]
34+
build:
35+
nodes:
36+
analysis:
37+
environment:
38+
php:
39+
version: 7.2
40+
tests:
41+
override:
42+
- php-scrutinizer-run

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `ubient/laravel-pwned-passwords` will be documented in this file
44

5+
## 2.0.0 - 2019-09-03
6+
- Drop support for Laravel 5.7 and older
7+
- Add support Laravel 6.0
8+
59
## 1.1.0 - 2019-02-27
610
- Drop support for PHP 7.1
711
- Add support for Laravel 5.8

composer.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
],
2323
"require": {
2424
"php": "^7.2",
25-
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
26-
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
27-
"guzzlehttp/guzzle": "^6.3"
25+
"guzzlehttp/guzzle": "^6.3",
26+
"illuminate/contracts": "^5.8|^6.0",
27+
"illuminate/support": "^5.8|^6.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^8.0",
31-
"orchestra/testbench": "~3.8.0"
30+
"orchestra/testbench": "^3.8",
31+
"phpunit/phpunit": "^8.0"
3232
},
3333
"autoload": {
3434
"psr-4": {
@@ -48,7 +48,10 @@
4848
}
4949
},
5050
"scripts": {
51-
"test": "vendor/bin/phpunit"
51+
"test": "phpunit"
52+
},
53+
"config": {
54+
"sort-packages": true
5255
},
5356
"minimum-stability": "dev",
5457
"prefer-stable": true

src/Api/PwnedPasswordsGateway.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function fetchHashes(string $hashPrefix): Collection
5050

5151
return collect($hashes)
5252
->mapWithKeys(function ($value) {
53-
list($hashSuffix, $occurrences) = explode(':', $value);
53+
[$hashSuffix, $occurrences] = explode(':', $value);
5454

5555
return [$hashSuffix => $occurrences];
5656
});

0 commit comments

Comments
 (0)