Skip to content
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/composer.lock
/vendor
.phpunit.result.cache
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
}
],
"require": {
"laravel/passport": "^7.0",
"vinkla/hashids": "^5.0",
"doctrine/dbal": "^2.6"
"laravel/passport": "^10.0",
"vinkla/hashids": "^10.0",
"doctrine/dbal": "^3.3"
},
"require-dev": {
"mockery/mockery": "~1.0",
"orchestra/testbench": "~3.7",
"phpunit/phpunit": "^7.5"
"mockery/mockery": "^1.0",
"orchestra/testbench": "^6.0|^7.0",
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Changelog
* 1.0 - Non-intrusive implementation of hashed Passport client IDs.
* 1.1 - Non-intrusive implementation of encrypted Passport client secrets.
* 1.2 - Added the option to customise the hashing salt, cleaned up the code and improved the readme.
* 2.0 - Works with Laravel Passport 7.0 and includes tests. Major thanks to Hackel and other contributors.

Requirements
-----
Expand Down
2 changes: 1 addition & 1 deletion tests/EncryptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EncryptionTest extends TestCase

private $client;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/HashingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HashingTest extends TestCase

protected $client;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
5 changes: 3 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
namespace Ssmulders\HashedPassport\Tests;

use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Str;
use Laravel\Passport\Passport;
use Laravel\Passport\PassportServiceProvider;
use Ssmulders\HashedPassport\HashedPassportServiceProvider;
use Vinkla\Hashids\HashidsServiceProvider;

abstract class TestCase extends \Orchestra\Testbench\TestCase
{
protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down Expand Up @@ -51,7 +52,7 @@ protected function createTestClient()
{
return Passport::client()->create([
'name' => 'Test Client',
'secret' => str_random(40),
'secret' => Str::random(40),
'redirect' => '',
'personal_access_client' => false,
'password_client' => false,
Expand Down