mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Fixed empty($class->method()) style for 5.4
Fixed empty($class->method()) style for 5.4, because this feature allowed for php5.5 or high.
This commit is contained in:
@@ -77,7 +77,7 @@ return [
|
||||
'class' => 'yii\web\Response',
|
||||
'on beforeSend' => function ($event) {
|
||||
$response = $event->sender;
|
||||
if ($response->data !== null && !empty(Yii::$app->request->get('suppress_response_code'))) {
|
||||
if ($response->data !== null && Yii::$app->request->get('suppress_response_code')) {
|
||||
$response->data = [
|
||||
'success' => $response->isSuccessful,
|
||||
'data' => $response->data,
|
||||
|
||||
Reference in New Issue
Block a user