Skip to content

Commit

Permalink
Merge pull request #8 from php-openapi/remove-redundant-yii-error
Browse files Browse the repository at this point in the history
remove redundant yii error command
  • Loading branch information
cebe authored Dec 5, 2024
2 parents cc5a4fd + be33afb commit 134701e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/JsonApiErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class JsonApiErrorHandler extends ErrorHandler

protected function renderException($exception)
{
Yii::error($exception);
if (Yii::$app->has('response')) {
$response = Yii::$app->getResponse();
// reset parameters of response to avoid interference with partially created response data
Expand Down

0 comments on commit 134701e

Please sign in to comment.