Skip to content

Commit 32efd12

Browse files
committed
convert vardump to warning
1 parent 6ac50ce commit 32efd12

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

phpunit.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
colors="true"
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
8+
convertWarningsToExceptions="false"
99
processIsolation="false"
1010
stopOnFailure="false"
1111
syntaxCheck="false">

src/Algorithm/Sorting/TimSort.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ class TimSort implements ISortable {
4141
public const RUN = 32;
4242

4343
public function __construct() {
44-
var_dump('Notice, the sorting algorithm seems to be broken, according to: https://github.com/doganoo/PHPAlgorithms/issues/23. Feel free to open a PR or use another sorting algorithm instead :)');
44+
trigger_error(
45+
'Notice, the sorting algorithm seems to be broken, according to: https://github.com/doganoo/PHPAlgorithms/issues/23. Feel free to open a PR or use another sorting algorithm instead :)'
46+
, E_USER_WARNING
47+
);
4548
}
4649

4750
/**

0 commit comments

Comments
 (0)