In phpstorm, hint: base class referenced by subclass\common\models\conventionparticipantsharerecipientconstant in the constant. How to cancel the prompt?
1. In phpstorm, the prompt: the base class referenced by the subclass\common\models\conventionparticipantsharerecipientconstant in the constant. as shown in Figure 1
2. The code is implemented as follows
common/models/conventionparticipantsharerecipient.php
class ConventionParticipantShareRecipient extends ActiveRecord
{
const STATUS_NORMAL = 1; // 状态:正常
const STATUS_SUSPENDED = 2; // 状态:停止分享
const STATUS_DELETED = 3; // 状态:删除
public static array $statusLabels = [
self::STATUS_NORMAL => '正常',
self::STATUS_SUSPENDED => '停止分享',
self::STATUS_DELETED => '删除',
];
api/models/conventionparticipantsharerecipient.php
class ConventionParticipantShareRecipient extends \common\models\ConventionParticipantShareRecipient
API/Controllers/ConventionParticipantShareRecipientController.php
$conventionParticipantShareRecipient->status = ConventionParticipantShareRecipient::STATUS_DELETED;
3. The adjustment code is implemented as follows, no longer prompted. as shown in Figure 2
use common\models\ConventionParticipantShareRecipient as CommonConventionParticipantShareRecipient;
$conventionParticipantShareRecipient->status = CommonConventionParticipantShareRecipient::STATUS_DELETED;

