Skip to content

Commit cd3ede9

Browse files
Update sfClassManipulator.class.php
Corregir error [PHP Error] preg_split(): Passing null to parameter FriendsOfSymfony1#3 ($limit) of type int is deprecated
1 parent 2a68033 commit cd3ede9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/sfClassManipulator.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function filterMethod($method, $callable)
190190
$line .= $token;
191191
}
192192

193-
$lines = preg_split('/(\r?\n)/', $line, null, PREG_SPLIT_DELIM_CAPTURE);
193+
$lines = preg_split('/(\r?\n)/', $line, -1, PREG_SPLIT_DELIM_CAPTURE);
194194
if (count($lines) > 1 || $break) {
195195
$line = $break ? '' : array_pop($lines);
196196
foreach (array_chunk($lines, 2) as $chunk) {

0 commit comments

Comments
 (0)