Verified Commit b81315d6 authored by Jess's avatar Jess
Browse files

fix: #3562676 Fix type hints with wrong case in @param and @return annotations

By: znerol
By: xjm
(cherry picked from commit bd260abe)
parent 78f170a9
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ protected function getEditorPermissions(): array {
  /**
   * Creates a test entity and translate it.
   *
   * @param \Drupal\User\UserInterface|null $user
   * @param \Drupal\user\UserInterface|null $user
   *   (optional) The entity owner.
   */
  protected function setupEntity(?UserInterface $user = NULL): void {
+2 −2
Original line number Diff line number Diff line
@@ -481,7 +481,7 @@ public function testMaximumUploadFileSizeValidation(): void {
    $type_name = 'article';
    $field_name = $this->randomMachineName();
    $this->createFileField($field_name, 'node', $type_name);
    /** @var \Drupal\Field\FieldConfigInterface $field */
    /** @var \Drupal\field\FieldConfigInterface $field */
    $field = FieldConfig::loadByName('node', $type_name, $field_name);
    $field_id = $field->id();
    $this->drupalGet("admin/structure/types/manage/$type_name/fields/$field_id");
@@ -492,7 +492,7 @@ public function testMaximumUploadFileSizeValidation(): void {
    $this->assertSession()->pageTextContains('Saved ' . $field_name . ' configuration.');

    // Reload the field config to check for the saved value.
    /** @var \Drupal\Field\FieldConfigInterface $field */
    /** @var \Drupal\field\FieldConfigInterface $field */
    $field = FieldConfig::loadByName('node', $type_name, $field_name);
    $settings = $field->getSettings();
    $this->assertEquals('5.1 megabytes', $settings['max_filesize'], 'The max filesize value had been trimmed on save.');
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ function history_read_multiple($nids): array {
 *
 * @param string|int|null $nid
 *   The node ID that has been read.
 * @param \Drupal\User\UserInterface $account
 * @param \Drupal\user\UserInterface $account
 *   (optional) The user account to update the history for. Defaults to the
 *   current user.
 */
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ interface UserAuthenticationInterface {
   * @param string $identifier
   *   The user identifier to authenticate. Usually the username.
   *
   * @return \Drupal\User\UserInterface|false
   * @return \Drupal\user\UserInterface|false
   *   The user account on success, or FALSE on failure to authenticate.
   */
  public function lookupAccount($identifier): UserInterface|false;