Skip to content

Commit

Permalink
Fixes PHP Fatal error: Cannot use Underscore\Types\String as String (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 25, 2017
1 parent 2f979ca commit c1a3f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/StringsMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Doctrine\Common\Inflector\Inflector;
use Patchwork\Utf8;
use RuntimeException;
use Underscore\Types\Strings;
use Underscore\Types\Strings as BaseString;

/**
* Methods to manage strings.
Expand Down Expand Up @@ -104,7 +104,7 @@ public static function quickRandom($length = 16)
*/
public static function randomStrings($words, $length = 10)
{
return Strings::from('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
return BaseString::from('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
->shuffle()
->split($length)
->slice(0, $words)
Expand Down

0 comments on commit c1a3f28

Please sign in to comment.