Skip to content

Commit 5e46cbf

Browse files
authored
Update user.md update PasswordHasher code sample to fix syntax error (#1958)
`User|void` generate this error `Compile Error: Void can only be used as a standalone type` with PHP 8.3 (at least). Removing void fix it.
1 parent 39655fc commit 5e46cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ final readonly class UserPasswordHasher implements ProcessorInterface
248248
/**
249249
* @param User $data
250250
*/
251-
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): User|void
251+
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): User
252252
{
253253
if (!$data->getPlainPassword()) {
254254
return $this->processor->process($data, $operation, $uriVariables, $context);

0 commit comments

Comments
 (0)