Skip to content

Commit 3b1ab2e

Browse files
derrabusnicolas-grekas
authored andcommitted
Fix inconsistent return points.
1 parent c7dafe8 commit 3b1ab2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DeprecationErrorHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public static function collectDeprecations($outputFile)
107107
}
108108

109109
$deprecations[] = [error_reporting(), $msg, $file];
110+
111+
return null;
110112
});
111113

112114
register_shutdown_function(function () use ($outputFile, &$deprecations) {
@@ -125,7 +127,7 @@ public function handleError($type, $msg, $file, $line, $context = [])
125127

126128
$deprecation = new Deprecation($msg, debug_backtrace(), $file);
127129
if ($deprecation->isMuted()) {
128-
return;
130+
return null;
129131
}
130132
$group = 'other';
131133

@@ -164,6 +166,8 @@ public function handleError($type, $msg, $file, $line, $context = [])
164166
}
165167

166168
++$this->deprecations[$group.'Count'];
169+
170+
return null;
167171
}
168172

169173
/**

0 commit comments

Comments
 (0)