Skip to content

Commit 21cd2e4

Browse files
committed
Fixed bug #3394 : Fix PHP 8.1 auto_detect_line_endings deprecation notice
1 parent 046ff7f commit 21cd2e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
8989
-- Thanks to Juliette Reinders Folmer for the patch
9090
- Fixed bug #3362 : Generic.WhiteSpace.ScopeIndent false positive for arrow functions inside arrays
9191
- Fixed bug #3384 : Squiz.Commenting.FileComment.SpacingAfterComment false positive on empty file
92+
- Fixed bug #3394 : Fix PHP 8.1 auto_detect_line_endings deprecation notice
9293
- Fixed bug #3400 : PHP 8.1: prevent deprecation notices about missing return types
9394
-- Thanks to Juliette Reinders Folmer for the patch
9495
</notes>

src/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function init()
291291

292292
// Ensure this option is enabled or else line endings will not always
293293
// be detected properly for files created on a Mac with the /r line ending.
294-
ini_set('auto_detect_line_endings', true);
294+
@ini_set('auto_detect_line_endings', true);
295295

296296
// Disable the PCRE JIT as this caused issues with parallel running.
297297
ini_set('pcre.jit', false);

0 commit comments

Comments
 (0)