Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style CI fix
  • Loading branch information
KDederichs committed Feb 26, 2020
commit 760af6f47ce6cc8cb06c4955c0db6d0636645bea
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function addException(\Exception $exception)
*/
public function setDefaultException(\Exception $defaultException = null)
{
if ($defaultException !== null && !$defaultException instanceof Exception) {
if (null !== $defaultException && !$defaultException instanceof Exception) {
@trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($defaultException).' will not be possible anymore in the future', E_USER_DEPRECATED);
}
$this->defaultException = $defaultException;
Expand Down