Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update phpstan/phpstan requirement from ^1 to ^2 #273

Merged
merged 3 commits into from
Dec 30, 2024
Merged
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
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 '';
}
}
Loading