X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FStrings.php;h=7b329151a1c85baec7d2ab4051facabcbc5343b4;hb=46cd39fb34613f4b331793f19c0e562f93125066;hp=c5d5c760a382872631bd84ece791da33a223bed7;hpb=1f889b6086c5fe81a4ab694a55efa1134f8326b3;p=friendica.git diff --git a/src/Util/Strings.php b/src/Util/Strings.php index c5d5c760a3..7b329151a1 100644 --- a/src/Util/Strings.php +++ b/src/Util/Strings.php @@ -1,6 +1,6 @@ $text, 'regex' => $regex, 'blocks' => $blocks, 'executionId' => $executionId, 'callstack' => System::callstack(10)]); + Logger::notice('Received null value from preg_replace_callback', ['text' => $text, 'regex' => $regex, 'blocks' => $blocks, 'executionId' => $executionId, 'callstack' => System::callstack(10)]); } $text = $callback($return ?? $text) ?? ''; @@ -532,7 +532,7 @@ class Strings } /** - * This function converts a PHP's shorhand notation string for file sizes in to an integer number of total bytes. + * This function converts a PHP's shorhand notation string for file sizes into an integer number of total bytes. * For example: The string for shorthand notation of '2M' (which is 2,097,152 Bytes) is converted to 2097152 * @see https://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes * @param string $shorthand