Skip to content
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

Fix usage of empty values with Faker provider #426

Merged

Conversation

theofidry
Copy link
Member

Due to some laxist checks done for a custom Faker provider function arguments, if empty values are passed, it is passing as if no arguments has been given. This PR enforce stricter checks and add a test case for it.

Closes #196.

Due to some laxist checks done for a custom Faker provider function arguments, if empty values are passed, it is passing as if no arguments has been given. This PR enforce stricter checks and add a test case for it.

Closes nelmio#196.
@theofidry theofidry added this to the 2.x milestone Jul 12, 2016
@theofidry theofidry merged commit d61a37e into nelmio:2.x Jul 12, 2016
@theofidry theofidry deleted the bugfix/empty-values-with-faker-providers branch July 12, 2016 23:06
theofidry added a commit to theofidry/alice that referenced this pull request Jul 16, 2016
* 2.x: (24 commits)
  Update changlog for 2.2.2
  Fix support for hyphens (nelmio#431)
  TypeHintChecker tweaks (nelmio#430)
  Update changelog for 2.2.1
  Add tests for Typehints in setters (nelmio#427)
  Fix usage of empty values with Faker provider (nelmio#426)
  Add tests for templates declared in includes (nelmio#424)
  Fix composite parameters (nelmio#423)
  Fix typo about $fake closure (nelmio#422)
  Tweaks on the CHANGELOG
  Fix minimum PHP version requred
  Update CHANGELOG
  Update composer.json
  Fix unique flag usage with templates
  Harden parameters and references (nelmio#355)
  Fix quotes (nelmio#417)
  Fix identity example (nelmio#416)
  Drop support for PHP 5.4 and 5.5. (nelmio#414)
  Doc tweaks (nelmio#412)
  Cleanup LoaderTest (nelmio#413)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant