Skip to content

Commit

Permalink
Strings::random() triggers E_USER_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 6, 2016
1 parent 494968f commit 4abe9ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
1 change: 1 addition & 0 deletions src/Utils/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ public static function reverse($s)
*/
public static function random($length = 10, $charlist = '0-9a-z')
{
trigger_error(__METHOD__ . '() is deprecated, use Nette\Utils\Random::generate()', E_USER_DEPRECATED);
return Random::generate($length, $charlist);
}

Expand Down
21 changes: 0 additions & 21 deletions tests/Utils/Strings.random().phpt

This file was deleted.

0 comments on commit 4abe9ba

Please sign in to comment.