Skip to content
Snippets Groups Projects
Commit 70a5bb34 authored by project update bot's avatar project update bot
Browse files

Merge branch 'project-update-bot-only' into '8.x-1.x'

Automated Project Update Bot fixes

See merge request !6
parents 995ff4ff 2afc3c80
No related branches found
No related tags found
No related merge requests found
Pipeline #309155 failed
name: 'JSON:API User Resources'
description: 'Provides JSON:API resources for users, such as registration.'
core_version_requirement: ^9 || ^10
core_version_requirement: ^8.8 || ^9 || ^10 || ^11
type: module
dependencies:
- drupal:jsonapi
......
......@@ -15,7 +15,7 @@ final class PasswordResetSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
return [
UserResourcesEvents::PASSWORD_RESET => 'onPasswordReset',
];
......
......@@ -33,7 +33,7 @@ final class UserRegistrationSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
return [
UserResourcesEvents::REGISTRATION_COMPLETE => 'sendEmailNotifications',
];
......
......@@ -88,7 +88,7 @@ final class PasswordUpdate extends EntityResourceBase implements ContainerInject
throw new UnprocessableEntityHttpException(sprintf('Missing required property "%s".', $required_property));
}
}
$timestamp = $resource_object->getField('timestamp');
$timestamp = (int) $resource_object->getField('timestamp');
// Time out, in seconds, until reset URL expires.
$timeout = $this->userSettings->get('password_reset_timeout');
$current = $this->time->getRequestTime();
......
name: 'JSON:API User Resources Test'
core_version_requirement: ^8.8 || ^9 || ^10
type: module
package: Testing
dependencies:
- jsonapi_user_resources:jsonapi_user_resources
......@@ -15,7 +15,7 @@ final class RegistrationSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
return [
UserResourcesEvents::REGISTRATION_COMPLETE => ['onUserRegistration'],
];
......
......@@ -125,7 +125,7 @@ final class PasswordResetTest extends BrowserTestBase {
* @return \Generator
* The test data.
*/
public function validationDataProvider(): \Generator {
public static function validationDataProvider(): \Generator {
yield [
[],
FALSE,
......@@ -159,7 +159,7 @@ final class PasswordResetTest extends BrowserTestBase {
* @return \Generator
* The test data.
*/
public function passwordResetDataProvider(): \Generator {
public static function passwordResetDataProvider(): \Generator {
yield [['name' => 'sut']];
yield [['mail' => 'sut@example.com']];
}
......
......@@ -132,7 +132,7 @@ final class PasswordUpdateTest extends BrowserTestBase {
* @return \Generator
* The test data.
*/
public function validationDataProvider(): \Generator {
public static function validationDataProvider(): \Generator {
yield [
[],
FALSE,
......
......@@ -322,7 +322,7 @@ final class RegistrationTest extends BrowserTestBase {
/**
* Data provider for the registration tests.
*/
public function dataRegistrationProvider(): \Generator {
public static function dataRegistrationProvider(): \Generator {
yield [
UserInterface::REGISTER_ADMINISTRATORS_ONLY,
FALSE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment