Skip to content

Commit

Permalink
Merge pull request #273 from PHP-Open-Source-Saver/dependabot/compose…
Browse files Browse the repository at this point in the history
…r/phpstan/phpstan-tw-2

Update phpstan/phpstan requirement from ^1 to ^2
  • Loading branch information
Messhias authored Dec 30, 2024
2 parents 460edf5 + 8da46d7 commit 5dec649
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 32 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"illuminate/routing": "^10|^11",
"orchestra/testbench": "^8|^9",
"mockery/mockery": "^1.4.4",
"phpstan/phpstan": "^1",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^10.5|^11"
},
"autoload": {
Expand Down
25 changes: 0 additions & 25 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,3 @@ parameters:
count: 2
path: tests/Providers/LaravelServiceProviderTest.php

-
message: "#^Method PHPOpenSourceSaver\\\\JWTAuth\\\\Test\\\\Stubs\\\\LaravelUserStub\\:\\:getAuthIdentifierName\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Stubs/LaravelUserStub.php

-
message: "#^Method PHPOpenSourceSaver\\\\JWTAuth\\\\Test\\\\Stubs\\\\LaravelUserStub\\:\\:getAuthPassword\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Stubs/LaravelUserStub.php

-
message: "#^Method PHPOpenSourceSaver\\\\JWTAuth\\\\Test\\\\Stubs\\\\LaravelUserStub\\:\\:getAuthPasswordName\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Stubs/LaravelUserStub.php

-
message: "#^Method PHPOpenSourceSaver\\\\JWTAuth\\\\Test\\\\Stubs\\\\LaravelUserStub\\:\\:getRememberToken\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Stubs/LaravelUserStub.php

-
message: "#^Method PHPOpenSourceSaver\\\\JWTAuth\\\\Test\\\\Stubs\\\\LaravelUserStub\\:\\:getRememberTokenName\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Stubs/LaravelUserStub.php

2 changes: 1 addition & 1 deletion tests/Stubs/JWTProviderStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class JWTProviderStub extends Provider
{
protected function isAsymmetric()
protected function isAsymmetric(): bool
{
return false;
}
Expand Down
15 changes: 10 additions & 5 deletions tests/Stubs/LaravelUserStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,36 @@

class LaravelUserStub extends UserStub implements Authenticatable, JWTSubject
{
public function getAuthIdentifierName()
public function getAuthIdentifierName(): string
{
return '';
}

public function getAuthIdentifier()
{
}

public function getAuthPasswordName()
public function getAuthPasswordName(): string
{
return '';
}

public function getAuthPassword()
public function getAuthPassword(): string
{
return '';
}

public function getRememberToken()
public function getRememberToken(): string
{
return '';
}

public function setRememberToken($value)
{
}

public function getRememberTokenName()
public function getRememberTokenName(): string
{
return '';
}
}

0 comments on commit 5dec649

Please sign in to comment.