Skip to content

Remove unnecesary docblock magic method definition uuid()#436

Closed
krsriq wants to merge 1 commit intoFakerPHP:mainfrom
krsriq:BUGFIX/generator_method
Closed

Remove unnecesary docblock magic method definition uuid()#436
krsriq wants to merge 1 commit intoFakerPHP:mainfrom
krsriq:BUGFIX/generator_method

Conversation

@krsriq
Copy link
Copy Markdown

@krsriq krsriq commented Jan 27, 2022

What is the reason for this PR?

The uuid() was defined as magic @method in the Generator docblock. In 69dbada the uuid() method was added to the Generator, making the definition of this method in the docblock unnecessary.

  • A new feature
  • Fixed an issue (resolve #ID)

Author's checklist

Summary of changes

Removed uuid() from Generator docblock.

Review checklist

  • All checks have passed
  • Changes are approved by maintainer

@krsriq krsriq changed the title remove doclbock magic method definition Remove unnecesary docblock magic method definition uuid() Jan 27, 2022
@pimjansen
Copy link
Copy Markdown

See discussion at #435.

@krsriq
Copy link
Copy Markdown
Author

krsriq commented Jan 27, 2022

If I understand correctly #435 is about in what order providers are loaded/if methods can be overridden - that's independent of whether they are (or are not) listed in the Generator class docblock, no?

@pimjansen
Copy link
Copy Markdown

If I understand correctly #435 is about in what order providers are loaded/if methods can be overridden - that's independent of whether they are (or are not) listed in the Generator class docblock, no?

Correct but it could mean we cant adjust it since it is called via a __call method. In this case the class method always has priority.

If this is the usecase we probably remove the new v2 extension from the Generator for now.

Will have a look into it tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants