Problem/Motivation

In core/modules/system/src/Tests/Entity/EntityQueryTest.php:

  /** 
   * Field name for the greetings field.
   *
   * @var string
   */
  public $greetings;

  /** 
   * Field name for the greetings field.                                                                                                                                                             
   *
   * @var string
   */
  public $figures;

Proposed resolution

Change the documentation block "Field name for the figures field." for the definition of the public $figures variable.

Remaining tasks

  • Write a patch
  • Review based on code documentation standards

User interface changes

No.

API changes

No.

Comments

dawehner’s picture

Issue tags: +Novice
mfarineau’s picture

Submitting a patch. First time - please let me know if this should be submitted elsewhere.

mfarineau’s picture

Status: Active » Needs review
cilefen’s picture

Status: Needs review » Reviewed & tested by the community

@mfarineau You have done it correctly. This is ready to go.

cilefen’s picture

To be totally clear:

  • I applied the patch to a working copy and reviewed the change.
  • I read the surrounding code to understand the meaning of this class property to be sure the comment change makes sense.
  • I verified the change did not introduce code style violations.
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Good catch. Thanks @cilefen for the specific explanation -- while it is a small fix, git by default did not apply quite enough context lines for the patch, and since there was almost-repeated code, it was good to confirm that it was updating the correct docblock. I did the same when committing it.

This issue only changes documentation that is furthermore in test code, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x. Congratulations @mfarineau on your first core patch!

  • xjm committed 144ff15 on 8.0.x
    Issue #2490382 by mfarineau, cilefen, mradcliffe: Fix typo in...
xjm’s picture

(Re-fixing the credit field.) Edit: for some reason the maintainer widget is not correctly saving credit for @mradcliffe. I'll file an issue against d.o for that.

xjm’s picture

Testing one more time.

xjm’s picture

Filed #2491115: As a project maintainer, I cannot save credit for the original poster in an issue for fixing whatever's going wrong with saving the credit on Drupal.org. (The commit message is correct though.) :)

mfarineau’s picture

Awesome, thanks @xjm and @cilefen!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.