yii2\extensions\phpstan\rules
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
API reference › PHPStan › rules
Classes
Section titled “Classes”| Class | Summary |
|---|---|
AttachBehaviorInvalidDefinitionRule final | Reports behavior definitions passed to Component::attachBehavior() or Component::attachBehaviors() that Yii can’t attach. |
AttachBehaviorInvalidOptionTypeRule final | Reports option values of behavior configurations passed to Component::attachBehavior() or Component::attachBehaviors() that the created Behavior never accepts. |
AttachBehaviorUnknownOptionRule final | Reports options of behavior configurations passed to Component::attachBehavior() or Component::attachBehaviors() that the created Behavior can’t assign. |
BehaviorDefinitionResolver final | Finds behavior definitions that Component can’t attach, and behavior configuration options that the created Behavior can’t assign or whose value it never accepts, in behaviors() returns, attachBehavior() and attachBehaviors() arguments and as options of Yii::createObject() configurations. |
BehaviorsInvalidDefinitionRule final | Reports behavior definitions returned by Component::behaviors() that Yii can’t attach. |
BehaviorsInvalidOptionTypeRule final | Reports option values of behavior configurations returned by Component::behaviors() that the created Behavior never accepts. |
BehaviorsUnknownOptionRule final | Reports options of behavior configurations returned by Component::behaviors() that the created Behavior can’t assign. |
CreateObjectBehaviorInvalidOptionTypeRule final | Reports option values of behavior configurations in the as options of BaseYii::createObject() configurations that the created Behavior never accepts. |
CreateObjectBehaviorUnknownOptionRule final | Reports options of behavior configurations in the as options of BaseYii::createObject() configurations that the created Behavior can’t assign. |
CreateObjectConfiguration final readonly | Represents a BaseYii::createObject() configuration whose class and assignment path are proven. |
CreateObjectConfigurationResolver final | Resolves the class and options of a BaseYii::createObject() call whose assignment path Yii makes certain. |
CreateObjectConstructionContract final readonly | Represents how an API constructs a configured object: the inherited constructor, the arguments the API supplies, the configuration parameter and what must hold before the configuration is applied. |
CreateObjectInvalidAsDefinitionRule final | Reports as options of BaseYii::createObject() configurations that the created Component rejects or can’t attach. |
CreateObjectInvalidOptionTypeRule final | Reports BaseYii::createObject() option values that the property or setter Yii assigns them to never accepts. |
CreateObjectUnknownOptionRule final | Reports BaseYii::createObject() options that Yii can’t assign to the created object. |
ExternalActionConfiguration final readonly | Represents an external action definition of Controller::actions() whose class and assignment path are proven. |
ExternalActionConfigurationResolver final | Resolves the external action definitions of a Controller::actions() return statement whose assignment path Yii makes certain. |
ExternalActionInvalidOptionTypeRule final | Reports option values of external action definitions returned by Controller::actions() that the property or setter Yii assigns them to never accepts, even with PHP’s weak type coercion. |
ExternalActionUnknownOptionRule final | Reports options of external action definitions returned by Controller::actions() that Yii can’t assign to the created action. |
InvalidBehaviorAsDefinition final readonly | Represents an as option of a Yii::createObject() configuration that Component rejects, as found by BehaviorDefinitionResolver. |
InvalidBehaviorDefinition final readonly | Represents a behavior definition that Component can’t attach, as found by BehaviorDefinitionResolver. |
InvalidBehaviorOptionType final readonly | Represents an option of a behavior configuration whose value the created Behavior never accepts, as found by BehaviorDefinitionResolver. |
ModelRulesReader final | Reads the validation rules that a Model::rules() return passes unchanged to Model::createValidators(), as proven by literals or by PHPStan’s native types. |
NewObjectConfiguration final readonly | Represents the configuration of a direct new construction whose class and assignment path are proven. |
NewObjectConfigurationResolver final | Resolves the class and configuration of a direct new construction whose assignment path Yii makes certain. |
NewObjectInvalidOptionTypeRule final | Reports configuration values of a direct new construction that the property or setter Yii assigns them to never accepts. |
NewObjectUnknownOptionRule final | Reports configuration options of a direct new construction that Yii can’t assign to the constructed object. |
ObjectConfigurationReader final | Reads the options of a Yii object configuration whose keys are proven by literals or by PHPStan’s native types. |
ObjectOptionAssignment final | Decides how Yii assigns configuration options to a BaseObject or Component subclass through BaseYii::configure() and __set(), independently of how the object is constructed. |
UnknownBehaviorOption final readonly | Represents an option of a behavior configuration that the created Behavior can’t assign, as found by BehaviorDefinitionResolver. |
ValidatorConfiguration final readonly | Represents the configuration of a Model::rules() entry whose created Validator and assignment path are proven. |
ValidatorConfigurationResolver final readonly | Resolves the validator class and options that Validator::createValidator() passes to Yii::createObject() for a Model::rules() entry using a closure, a qualified class name or one of Yii’s declared built-in aliases. |
ValidatorIncompleteRuleRule final | Reports validation rules returned by Model::rules() that Model::createValidators() rejects because the rule has no non-null attribute names at key 0 or validator type at key 1. |
ValidatorInvalidDefinitionRule final | Reports validation rules returned by Model::rules() whose validator type at key 1 is an array or an object other than a Closure, which Validator::createValidator() looks up as a key of Validator::$builtInValidators and so rejects with a TypeError. |
ValidatorInvalidOptionTypeRule final readonly | Reports option values written in model validation rules that the property or setter of the validator Yii creates never accepts. |
ValidatorMissingRequiredOptionRule final readonly | Reports model validation rules that create RangeValidator, RegularExpressionValidator or FilterValidator without the range, pattern or filter option, whose absence or null value makes the validator’s init() throw an InvalidConfigException. |
ValidatorUnknownOptionRule final readonly | Reports unknown options in model validation rules using closures, qualified classes or Yii’s declared built-in aliases. |
WidgetConfiguration final readonly | Represents the configuration of a Widget::widget() or Widget::begin() call whose class and assignment path are proven. |
WidgetConfigurationResolver final | Resolves the widget class and options of a Widget::widget() or Widget::begin() call whose assignment path Yii makes certain. |
WidgetInvalidOptionTypeRule final | Reports Widget::widget() and Widget::begin() option values that the property or setter Yii assigns them to never accepts. |
WidgetUnknownOptionRule final | Reports Widget::widget() and Widget::begin() options that Yii can’t assign to the created widget. |