Skip to content

Commit 2e9fb00

Browse files
authored
Merge pull request #138 from fschmtt/phpstan-2.0
chore(deps): upgrade to phpstan 2.0
2 parents e865fcb + a578c71 commit 2e9fb00

35 files changed

+460
-245
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
},
1313
"require-dev": {
1414
"phpmetrics/phpmetrics": "^2.7",
15-
"phpstan/phpstan": "^1.10",
15+
"phpstan/phpstan": "^2.0",
1616
"ramsey/uuid": "^4.7",
1717
"phpunit/phpunit": "^10",
18-
"phpstan/phpstan-deprecation-rules": "^1.1",
18+
"phpstan/phpstan-deprecation-rules": "^2.0",
1919
"vimeo/psalm": "^0.3.14",
2020
"friendsofphp/php-cs-fixer": "^3.65"
2121
},

src/Representation/AuthenticationExecutionExport.php

+14-7
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@
66

77
/**
88
* @method string|null getAuthenticator()
9-
* @method string|null getAuthenticatorConfig()
10-
* @method bool|null getAuthenticatorFlow()
11-
* @method string|null getFlowId()
12-
* @method string|null getId()
13-
* @method string|null getParentFlow()
14-
* @method int|null getPriority()
15-
* @method string|null getRequirement()
169
* @method self withAuthenticator(?string $authenticator)
10+
*
11+
* @method string|null getAuthenticatorConfig()
1712
* @method self withAuthenticatorConfig(?string $authenticatorConfig)
13+
*
14+
* @method bool|null getAuthenticatorFlow()
1815
* @method self withAuthenticatorFlow(?bool $authenticatorFlow)
16+
*
17+
* @method string|null getFlowId()
1918
* @method self withFlowId(?string $flowId)
19+
*
20+
* @method string|null getId()
2021
* @method self withId(?string $id)
22+
*
23+
* @method string|null getParentFlow()
2124
* @method self withParentFlow(?string $parentFlow)
25+
*
26+
* @method int|null getPriority()
2227
* @method self withPriority(?int $priority)
28+
*
29+
* @method string|null getRequirement()
2330
* @method self withRequirement(?string $requirement)
2431
*
2532
* @codeCoverageIgnore

src/Representation/AuthenticationFlow.php

+12-6
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,24 @@
88

99
/**
1010
* @method string|null getAlias()
11-
* @method AuthenticationExecutionExportCollection|null getAuthenticationExecutions()
12-
* @method bool|null getBuiltin()
13-
* @method string|null getDescription()
14-
* @method string|null getId()
15-
* @method string|null getProviderId()
16-
* @method bool|null getTopLevel()
1711
* @method self withAlias(?string $alias)
12+
*
13+
* @method AuthenticationExecutionExportCollection|null getAuthenticationExecutions()
1814
* @method self withAuthenticationExecutions(?AuthenticationExecutionExportCollection $authenticationExecutions)
15+
*
16+
* @method bool|null getBuiltin()
1917
* @method self withBuiltin(?bool $builtin)
18+
*
19+
* @method string|null getDescription()
2020
* @method self withDescription(?string $description)
21+
*
22+
* @method string|null getId()
2123
* @method self withId(?string $id)
24+
*
25+
* @method string|null getProviderId()
2226
* @method self withProviderId(?string $providerId)
27+
*
28+
* @method bool|null getTopLevel()
2329
* @method self withTopLevel(?bool $topLevel)
2430
*
2531
* @codeCoverageIgnore

src/Representation/AuthenticatorConfig.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
/**
1010
* @method string|null getAlias()
11-
* @method Map|null getConfig()
12-
* @method string|null getId()
1311
* @method self withAlias(?string $alias)
12+
*
13+
* @method Map|null getConfig()
1414
* @method self withConfig(?Map $config)
15+
*
16+
* @method string|null getId()
1517
* @method self withId(?string $id)
1618
*
1719
* @codeCoverageIgnore

src/Representation/Client.php

+76-40
Original file line numberDiff line numberDiff line change
@@ -9,79 +9,115 @@
99

1010
/**
1111
* @method Map|null getAccess()
12-
* @method string|null getAdminUrl()
13-
* @method bool|null getAlwaysDisplayInConsole()
14-
* @method Map|null getAttributes()
15-
* @method Map|null getAuthenticationFlowBindingOverrides()
16-
* @method bool|null getAuthorizationServicesEnabled()
17-
* @method ResourceServer|null getAuthorizationSettings()
18-
* @method string|null getBaseUrl()
19-
* @method bool|null getBearerOnly()
20-
* @method string|null getClientAuthenticatorType()
21-
* @method string|null getClientId()
22-
* @method bool|null getConsentRequired()
23-
* @method array|null getDefaultClientScopes()
24-
* @method string|null getDescription()
25-
* @method bool|null getDirectAccessGrantsEnabled()
26-
* @method bool|null getEnabled()
27-
* @method bool|null getFrontchannelLogout()
28-
* @method bool|null getFullScopeAllowed()
29-
* @method string|null getId()
30-
* @method bool|null getImplicitFlowEnabled()
31-
* @method string|null getName()
32-
* @method int|null getNodeReRegistrationTimeout()
33-
* @method int|null getNotBefore()
34-
* @method array|null getOptionalClientScopes()
35-
* @method string|null getOrigin()
36-
* @method string|null getProtocol()
37-
* @method ProtocolMapperCollection|null getProtocolMappers()
38-
* @method bool|null getPublicClient()
39-
* @method array|null getRedirectUris()
40-
* @method Map|null getRegisteredNodes()
41-
* @method string|null getRegistrationAccessToken()
42-
* @method string|null getRootUrl()
43-
* @method string|null getSecret()
44-
* @method bool|null getServiceAccountsEnabled()
45-
* @method bool|null getStandardFlowEnabled()
46-
* @method bool|null getSurrogateAuthRequired()
47-
* @method array|null getWebOrigins()
4812
* @method self withAccess(?Map $access)
13+
*
14+
* @method string|null getAdminUrl()
4915
* @method self withAdminUrl(?string $adminUrl)
16+
*
17+
* @method bool|null getAlwaysDisplayInConsole()
5018
* @method self withAlwaysDisplayInConsole(?bool $alwaysDisplayInConsole)
19+
*
20+
* @method Map|null getAttributes()
5121
* @method self withAttributes(?Map $attributes)
22+
*
23+
* @method Map|null getAuthenticationFlowBindingOverrides()
5224
* @method self withAuthenticationFlowBindingOverrides(?Map $authenticationFlowBindingOverrides)
25+
*
26+
* @method bool|null getAuthorizationServicesEnabled()
5327
* @method self withAuthorizationServicesEnabled(?bool $authorizationServicesEnabled)
28+
*
29+
* @method ResourceServer|null getAuthorizationSettings()
5430
* @method self withAuthorizationSettings(?ResourceServer $authorizationSettings)
31+
*
32+
* @method string|null getBaseUrl()
5533
* @method self withBaseUrl(?string $baseUrl)
34+
*
35+
* @method bool|null getBearerOnly()
5636
* @method self withBearerOnly(?bool $bearerOnly)
37+
*
38+
* @method string|null getClientAuthenticatorType()
5739
* @method self withClientAuthenticatorType(?string $clientAuthenticatorType)
40+
*
41+
* @method string|null getClientId()
5842
* @method self withClientId(?string $clientId)
43+
*
44+
* @method bool|null getConsentRequired()
5945
* @method self withConsentRequired(?bool $consentRequired)
60-
* @method self withDefaultClientScopes(?array $defaultClientScopes)
46+
*
47+
* @method string[]|null getDefaultClientScopes()
48+
* @method self withDefaultClientScopes(?string[] $defaultClientScopes)
49+
*
50+
* @method string|null getDescription()
6151
* @method self withDescription(?string $description)
52+
*
53+
* @method bool|null getDirectAccessGrantsEnabled()
6254
* @method self withDirectAccessGrantsEnabled(?bool $directAccessGrantsEnabled)
55+
*
56+
* @method bool|null getEnabled()
6357
* @method self withEnabled(?bool $enabled)
58+
*
59+
* @method bool|null getFrontchannelLogout()
6460
* @method self withFrontchannelLogout(?bool $frontchannelLogout)
61+
*
62+
* @method bool|null getFullScopeAllowed()
6563
* @method self withFullScopeAllowed(?bool $fullScopeAllowed)
64+
*
65+
* @method string|null getId()
6666
* @method self withId(?string $id)
67+
*
68+
* @method bool|null getImplicitFlowEnabled()
6769
* @method self withImplicitFlowEnabled(?bool $implicitFlowEnabled)
70+
*
71+
* @method string|null getName()
6872
* @method self withName(?string $name)
73+
*
74+
* @method int|null getNodeReRegistrationTimeout()
6975
* @method self withNodeReRegistrationTimeout(?int $nodeReRegistrationTimeout)
76+
*
77+
* @method int|null getNotBefore()
7078
* @method self withNotBefore(?int $notBefore)
71-
* @method self withOptionalClientScopes(?array $optionalClientScopes)
79+
*
80+
* @method string[]|null getOptionalClientScopes()
81+
* @method self withOptionalClientScopes(?string[] $optionalClientScopes)
82+
*
83+
* @method string|null getOrigin()
7284
* @method self withOrigin(?string $origin)
85+
*
86+
* @method string|null getProtocol()
7387
* @method self withProtocol(?string $protocol)
88+
*
89+
* @method ProtocolMapperCollection|null getProtocolMappers()
7490
* @method self withProtocolMappers(?ProtocolMapperCollection $protocolMappers)
91+
*
92+
* @method bool|null getPublicClient()
7593
* @method self withPublicClient(?bool $publicClient)
76-
* @method self withRedirectUris(?array $redirectUris)
94+
*
95+
* @method string[]|null getRedirectUris()
96+
* @method self withRedirectUris(?string[] $redirectUris)
97+
*
98+
* @method Map|null getRegisteredNodes()
7799
* @method self withRegisteredNodes(?Map $registeredNodes)
100+
*
101+
* @method string|null getRegistrationAccessToken()
78102
* @method self withRegistrationAccessToken(?string $registrationAccessToken)
103+
*
104+
* @method string|null getRootUrl()
79105
* @method self withRootUrl(?string $rootUrl)
106+
*
107+
* @method string|null getSecret()
80108
* @method self withSecret(?string $secret)
109+
*
110+
* @method bool|null getServiceAccountsEnabled()
81111
* @method self withServiceAccountsEnabled(?bool $serviceAccountsEnabled)
112+
*
113+
* @method bool|null getStandardFlowEnabled()
82114
* @method self withStandardFlowEnabled(?bool $standardFlowEnabled)
115+
*
116+
* @method bool|null getSurrogateAuthRequired()
83117
* @method self withSurrogateAuthRequired(?bool $surrogateAuthRequired)
84-
* @method self withWebOrigins(?array $webOrigins)
118+
*
119+
* @method string[]|null getWebOrigins()
120+
* @method self withWebOrigins(?string[] $webOrigins)
85121
*
86122
* @codeCoverageIgnore
87123
*/

src/Representation/ClientPolicy.php

+9-5
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66

77
/**
88
* @method ClientPolicyCondition[]|null getConditions()
9+
* @method self withConditions(?string[] $conditions)
10+
*
911
* @method string|null getDescription()
12+
* @method self withDescription(?string $description)
13+
*
1014
* @method bool|null getEnabled()
11-
* @method string|null getName()
12-
* @method string[]|null getProfiles()
13-
* @method self withConditions(?array $conditions)
14-
* @method self withDescription(?array $description)
1515
* @method self withEnabled(?bool $enabled)
16+
*
17+
* @method string|null getName()
1618
* @method self withName(?string $name)
17-
* @method self withProfiles(?array $profiles)
19+
*
20+
* @method string[]|null getProfiles()
21+
* @method self withProfiles(?string[] $profiles)
1822
*
1923
* @codeCoverageIgnore
2024
*/

src/Representation/ClientPolicyCondition.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
/**
88
* @method string|null getCondition()
9-
* @method JsonNode|null getConfiguration()
109
* @method self withCondition(?string $condition)
10+
*
11+
* @method JsonNode|null getConfiguration()
1112
* @method self withConfiguration(?JsonNode $configuration)
1213
*
1314
* @codeCoverageIgnore

src/Representation/ClientPolicyExecutor.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
/**
88
* @method JsonNode|null getConfiguration()
9-
* @method string|null getExecutor()
109
* @method self withConfiguration(?JsonNode $configuration)
10+
*
11+
* @method string|null getExecutor()
1112
* @method self withExecutor(?string $executor)
1213
*
1314
* @codeCoverageIgnore

src/Representation/ClientProfile.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88

99
/**
1010
* @method bool|null getBuiltin()
11+
* @method self withBuiltin(?bool $enable)
12+
*
1113
* @method string|null getDescription()
14+
* @method self withDescription(?string $description)
15+
*
1216
* @method ClientPolicyExecutorCollection|null getExecutors()
13-
* @method string|null getName()
14-
* @method self withBuiltin(?bool $enable)
15-
* @method self withDescription(?array $description)
1617
* @method self withExecutors(?ClientPolicyExecutorCollection $executors)
18+
*
19+
* @method string|null getName()
1720
* @method self withName(?string $name)
1821
*
1922
* @codeCoverageIgnore

src/Representation/ClientProfiles.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
/**
1010
* @method ClientProfileCollection|null getGlobalProfiles()
11+
* @method self withGlobalProfiles(?ClientProfileCollection $globalProfiles)
12+
*
1113
* @method ClientProfileCollection|null getProfiles()
12-
* @method self withGlobalProfiles(?array $globalProfiles)
13-
* @method self withProfiles(?array $profiles)
14+
* @method self withProfiles(?ClientProfileCollection $profiles)
1415
*
1516
* @codeCoverageIgnore
1617
*/

src/Representation/ClientScope.php

+5
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010
/**
1111
* @method Map|null getAttributes()
1212
* @method self withAttributes(?Map $attributes)
13+
*
1314
* @method string|null getDescription()
1415
* @method self withDescription(?string $description)
16+
*
1517
* @method string|null getId()
1618
* @method self withId(?string $id)
19+
*
1720
* @method string|null getName()
1821
* @method self withName(?string $name)
22+
*
1923
* @method string|null getProtocol()
2024
* @method self withProtocol(?string $protocol)
25+
*
2126
* @method ProtocolMapperCollection|null getProtocolMappers()
2227
* @method self withProtocolMappers(?ProtocolMapperCollection $protocolMappers)
2328
*

0 commit comments

Comments
 (0)