-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
* Report "suppressed" deprecations * Report "suppressed" deprecations on tests
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,11 +67,11 @@ public function bootstrap(Application $app) | |
*/ | ||
public function handleError($level, $message, $file = '', $line = 0, $context = []) | ||
{ | ||
if (error_reporting() & $level) { | ||
if ($this->isDeprecation($level)) { | ||
return $this->handleDeprecation($message, $file, $line); | ||
} | ||
if ($this->isDeprecation($level)) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
knobik
|
||
return $this->handleDeprecation($message, $file, $line); | ||
} | ||
|
||
if (error_reporting() & $level) { | ||
throw new ErrorException($message, 0, $level, $file, $line); | ||
} | ||
} | ||
|
this change breaks the correct flow as it suppresses the
Trying to get property 'id' of non-object
errors and others, resulting effect is that relations that dont exist instead of throwing an error which can be catched return null (they are suppressed) Its a breaking error.