Skip to content

Commit 822833a

Browse files
committed
GitHub Issue facebookarchive#546: Received a fatal because mb_substr was not found.
Updating PSR-2 validation, misconfigured my PHP Sniffs. Error fixed ``` ~/.composer/vendor/bin/phpcs src --standard=psr2 -spn ............................................................ 60 / 73 (82%) ............. Time: 1.95 secs; Memory: 14Mb ```
1 parent d1e8a73 commit 822833a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Facebook/PseudoRandomString/PseudoRandomStringGeneratorTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function validateLength($length)
5454
*/
5555
public function binToHex($binaryData, $length)
5656
{
57-
if(true !== extension_loaded('mbstring')) {
58-
throw new \RuntimeException('Multibyte support required');
57+
if (true !== extension_loaded('mbstring')) {
58+
throw new \RuntimeException('Multibyte support required');
5959
}
6060
return \mb_substr(\bin2hex($binaryData), 0, $length);
6161
}

0 commit comments

Comments
 (0)