-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate key error thrown when extending Faker class #1368
Comments
Hi @jsolferreira , I think this may have been introduced as part of #1271. @asolntsev , is this something you could have a look at? |
... when a custom faker has multiple methods with the same return type.
@jsolferreira thank you for the precise description and steps to reproduce. It helps to quickly fix the problem! Should be fixed by this PR: #1369 |
... when a custom faker has multiple methods with the same return type.
@jsolferreira could you please give the snapshot release a try? If it works, I'll publish a new release. |
@bodiam @asolntsev Just tested the same code example and it worked with version 2.4.1-SNAPSHOT Thanks for the quick fix! |
Describe the bug
If a class that extends the Faker class has two methods returing the same type, calling one method of the Faker class throws the following error:
To Reproduce
BaseFaker class:
The error is thrown when calling
oneMethodReturningString()
Expected behavior
The error should not be thrown
Versions:
Additional context
The error starts to happen after version 2.3.0. With version 2.2.2 the code provided works well
The text was updated successfully, but these errors were encountered: