mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
fix all warnings except TODO warnings
This commit is contained in:
parent
ac087ec938
commit
56225bcca3
21 changed files with 110 additions and 17 deletions
|
@ -395,7 +395,10 @@ class Debugger {
|
|||
if (!file_exists($file)) {
|
||||
return array();
|
||||
}
|
||||
$data = @explode("\n", file_get_contents($file));
|
||||
$data = file_get_contents($file);
|
||||
if (!empty($data) && strpos($data, "\n") !== false) {
|
||||
$data = explode("\n", $data);
|
||||
}
|
||||
|
||||
if (empty($data) || !isset($data[$line])) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue