Skip to content

Commit 8a43089

Browse files
Merge branch '5.4' into 6.0
* 5.4: [Serializer] cs fix Cleanup more `@return` annotations [Form] Fix phpdoc on FormBuilderInterface
2 parents 961d061 + 02af96b commit 8a43089

File tree

9 files changed

+13
-23
lines changed

9 files changed

+13
-23
lines changed

Authentication/Provider/AuthenticationProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface AuthenticationProviderInterface extends AuthenticationManagerInterface
3838
/**
3939
* Checks whether this provider supports the given token.
4040
*
41-
* @return bool true if the implementation supports the Token, false otherwise
41+
* @return bool
4242
*/
4343
public function supports(TokenInterface $token);
4444
}

Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function supports(TokenInterface $token)
115115
/**
116116
* Retrieves the user from an implementation-specific location.
117117
*
118-
* @return UserInterface The user
118+
* @return UserInterface
119119
*
120120
* @throws AuthenticationException if the credentials could not be validated
121121
*/

Authentication/Token/AbstractToken.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function __unserialize(array $data): void
207207
/**
208208
* Returns the token attributes.
209209
*
210-
* @return array The token attributes
210+
* @return array
211211
*/
212212
public function getAttributes()
213213
{
@@ -227,7 +227,7 @@ public function setAttributes(array $attributes)
227227
/**
228228
* Returns true if the attribute exists.
229229
*
230-
* @return bool true if the attribute exists, false otherwise
230+
* @return bool
231231
*/
232232
public function hasAttribute(string $name)
233233
{
@@ -237,7 +237,7 @@ public function hasAttribute(string $name)
237237
/**
238238
* Returns an attribute value.
239239
*
240-
* @return mixed The attribute value
240+
* @return mixed
241241
*
242242
* @throws \InvalidArgumentException When attribute doesn't exist for this token
243243
*/

Authentication/Token/TokenInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public function __toString(): string;
3333
/**
3434
* Returns the user roles.
3535
*
36-
* @return string[] The associated roles
36+
* @return string[]
3737
*/
3838
public function getRoleNames(): array;
3939

4040
/**
4141
* Returns the user credentials.
4242
*
43-
* @return mixed The user credentials
43+
* @return mixed
4444
*
4545
* @deprecated since 5.4
4646
*/
@@ -86,7 +86,7 @@ public function eraseCredentials();
8686
/**
8787
* Returns the token attributes.
8888
*
89-
* @return array The token attributes
89+
* @return array
9090
*/
9191
public function getAttributes();
9292

@@ -100,14 +100,14 @@ public function setAttributes(array $attributes);
100100
/**
101101
* Returns true if the attribute exists.
102102
*
103-
* @return bool true if the attribute exists, false otherwise
103+
* @return bool
104104
*/
105105
public function hasAttribute(string $name);
106106

107107
/**
108108
* Returns an attribute value.
109109
*
110-
* @return mixed The attribute value
110+
* @return mixed
111111
*
112112
* @throws \InvalidArgumentException When attribute doesn't exist for this token
113113
*/

Authorization/AccessDecisionManagerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface AccessDecisionManagerInterface
2626
* @param array $attributes An array of attributes associated with the method being invoked
2727
* @param mixed $object The object to secure
2828
*
29-
* @return bool true if the access is granted, false otherwise
29+
* @return bool
3030
*/
3131
public function decide(TokenInterface $token, array $attributes, mixed $object = null);
3232
}

Authorization/Voter/Voter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function vote(TokenInterface $token, mixed $subject, array $attributes)
5959
*
6060
* @param $subject The subject to secure, e.g. an object the user wants to access or any other PHP type
6161
*
62-
* @return bool True if the attribute and subject are supported, false otherwise
62+
* @return bool
6363
*/
6464
abstract protected function supports(string $attribute, mixed $subject);
6565

User/PasswordAuthenticatedUserInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ interface PasswordAuthenticatedUserInterface
2323
* Returns the hashed password used to authenticate the user.
2424
*
2525
* Usually on authentication, a plain-text password will be compared to this value.
26-
*
27-
* @return string|null The hashed password or null (if not set or erased)
2826
*/
2927
public function getPassword(): ?string;
3028
}

User/User.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ public function getUserIdentifier(): string
104104
* Internally, if this method returns false, the authentication system
105105
* will throw an AccountExpiredException and prevent login.
106106
*
107-
* @return bool true if the user's account is non expired, false otherwise
108-
*
109107
* @see AccountExpiredException
110108
*/
111109
public function isAccountNonExpired(): bool
@@ -119,8 +117,6 @@ public function isAccountNonExpired(): bool
119117
* Internally, if this method returns false, the authentication system
120118
* will throw a LockedException and prevent login.
121119
*
122-
* @return bool true if the user is not locked, false otherwise
123-
*
124120
* @see LockedException
125121
*/
126122
public function isAccountNonLocked(): bool
@@ -134,8 +130,6 @@ public function isAccountNonLocked(): bool
134130
* Internally, if this method returns false, the authentication system
135131
* will throw a CredentialsExpiredException and prevent login.
136132
*
137-
* @return bool true if the user's credentials are non expired, false otherwise
138-
*
139133
* @see CredentialsExpiredException
140134
*/
141135
public function isCredentialsNonExpired(): bool
@@ -149,8 +143,6 @@ public function isCredentialsNonExpired(): bool
149143
* Internally, if this method returns false, the authentication system
150144
* will throw a DisabledException and prevent login.
151145
*
152-
* @return bool true if the user is enabled, false otherwise
153-
*
154146
* @see DisabledException
155147
*/
156148
public function isEnabled(): bool

User/UserInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ interface UserInterface
4444
* and populated in any number of different ways when the user object
4545
* is created.
4646
*
47-
* @return string[] The user roles
47+
* @return string[]
4848
*/
4949
public function getRoles();
5050

0 commit comments

Comments
 (0)