Skip to content

Commit 42d22d2

Browse files
Use mb_detect_encoding with $strict = true
1 parent 7757a28 commit 42d22d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Logger/DbalLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function testLogUTF8LongString()
160160
$dbalLogger
161161
->expects($this->once())
162162
->method('log')
163-
->with('SQL', array('short' => $shortString, 'long' => mb_substr($longString, 0, DbalLogger::MAX_STRING_LENGTH - 6, mb_detect_encoding($longString)).' [...]'))
163+
->with('SQL', array('short' => $shortString, 'long' => mb_substr($longString, 0, DbalLogger::MAX_STRING_LENGTH - 6, 'UTF-8').' [...]'))
164164
;
165165

166166
$dbalLogger->startQuery('SQL', array(

0 commit comments

Comments
 (0)