Skip to content

Instantly share code, notes, and snippets.

@datashaman
Created April 28, 2019 19:24
Show Gist options
  • Select an option

  • Save datashaman/5b421f508a54f4f6dd92784fc05fc8cb to your computer and use it in GitHub Desktop.

Select an option

Save datashaman/5b421f508a54f4f6dd92784fc05fc8cb to your computer and use it in GitHub Desktop.
Datashaman\PHPCheck\chooseAny Example
<?php
<<<CONFIG
packages:
- "datashaman/phpcheck: dev-wip"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\PHPCheck\chooseAny;
use function Datashaman\PHPCheck\sample;
var_dump(sample(chooseAny('float')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment