From 22c96f0a18603fbc80a55ee74e993e150a61a138 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Thu, 21 Feb 2019 16:51:18 +0100 Subject: [PATCH] Tests > Regex > fix "The mode is not binary-safe ('b' is missing)" bug --- tests/Utilities/RegexTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Utilities/RegexTest.php b/tests/Utilities/RegexTest.php index de38372..efaa3e7 100644 --- a/tests/Utilities/RegexTest.php +++ b/tests/Utilities/RegexTest.php @@ -799,12 +799,12 @@ class RegexTest extends BaseTestCase ]; yield[ - fread(fopen($file1Path, 'r'), 1), + fread(fopen($file1Path, 'rb'), 1), false, ]; yield[ - fread(fopen($file2Path, 'r'), 1), + fread(fopen($file2Path, 'rb'), 1), true, ]; }