-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Open
Labels
type:docsDocumentationDocumentation
Description
<?php
declare(strict_types=1);
namespace app\Behaviors;
use yii\base\Behavior;
use yii\base\ModelEvent;
use yii\db\ActiveRecord;
class TestBehavior extends Behavior
{
/**
* @return string[]
*/
public function events(): array
{
return [
ActiveRecord::EVENT_BEFORE_INSERT => 'beforeInsert',
];
}
public function beforeInsert(ModelEvent $event): void
{
}
}
ERROR: MissingTemplateParam - Behaviors/TestBehavior.php:11:7 - app\Behaviors\TestBehavior has missing template params when extending yii\base\Behavior, expecting 1 (see https://psalm.dev/182)
class TestBehavior extends Behavior
Metadata
Metadata
Assignees
Labels
type:docsDocumentationDocumentation