Use constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
38e5135cb9
commit
695696a4a6
2 changed files with 2 additions and 2 deletions
|
@ -578,7 +578,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
}
|
||||
|
||||
if(empty($this->requestId)) {
|
||||
$validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
$validChars = ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS;
|
||||
$this->requestId = $this->secureRandom->generate(20, $validChars);
|
||||
}
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ class File {
|
|||
'url',
|
||||
'message',
|
||||
'userAgent',
|
||||
'version',
|
||||
'version'
|
||||
);
|
||||
$entry = json_encode($entry);
|
||||
$handle = @fopen(self::$logFile, 'a');
|
||||
|
|
Loading…
Reference in a new issue