Перейти до вмісту
PHP Ecosystem
Explore

yii2\extensions\phpstan\rules

Цей контент ще не доступний вашою мовою.

API reference › PHPStan › rules

ClassSummary
AttachBehaviorInvalidDefinitionRule finalReports behavior definitions passed to Component::attachBehavior() or Component::attachBehaviors() that Yii can’t attach.
AttachBehaviorInvalidOptionTypeRule finalReports option values of behavior configurations passed to Component::attachBehavior() or Component::attachBehaviors() that the created Behavior never accepts.
AttachBehaviorUnknownOptionRule finalReports options of behavior configurations passed to Component::attachBehavior() or Component::attachBehaviors() that the created Behavior can’t assign.
BehaviorDefinitionResolver finalFinds 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 finalReports behavior definitions returned by Component::behaviors() that Yii can’t attach.
BehaviorsInvalidOptionTypeRule finalReports option values of behavior configurations returned by Component::behaviors() that the created Behavior never accepts.
BehaviorsUnknownOptionRule finalReports options of behavior configurations returned by Component::behaviors() that the created Behavior can’t assign.
CreateObjectBehaviorInvalidOptionTypeRule finalReports option values of behavior configurations in the as options of BaseYii::createObject() configurations that the created Behavior never accepts.
CreateObjectBehaviorUnknownOptionRule finalReports options of behavior configurations in the as options of BaseYii::createObject() configurations that the created Behavior can’t assign.
CreateObjectConfiguration final readonlyRepresents a BaseYii::createObject() configuration whose class and assignment path are proven.
CreateObjectConfigurationResolver finalResolves the class and options of a BaseYii::createObject() call whose assignment path Yii makes certain.
CreateObjectConstructionContract final readonlyRepresents 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 finalReports as options of BaseYii::createObject() configurations that the created Component rejects or can’t attach.
CreateObjectInvalidOptionTypeRule finalReports BaseYii::createObject() option values that the property or setter Yii assigns them to never accepts.
CreateObjectUnknownOptionRule finalReports BaseYii::createObject() options that Yii can’t assign to the created object.
ExternalActionConfiguration final readonlyRepresents an external action definition of Controller::actions() whose class and assignment path are proven.
ExternalActionConfigurationResolver finalResolves the external action definitions of a Controller::actions() return statement whose assignment path Yii makes certain.
ExternalActionInvalidOptionTypeRule finalReports 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 finalReports options of external action definitions returned by Controller::actions() that Yii can’t assign to the created action.
InvalidBehaviorAsDefinition final readonlyRepresents an as option of a Yii::createObject() configuration that Component rejects, as found by BehaviorDefinitionResolver.
InvalidBehaviorDefinition final readonlyRepresents a behavior definition that Component can’t attach, as found by BehaviorDefinitionResolver.
InvalidBehaviorOptionType final readonlyRepresents an option of a behavior configuration whose value the created Behavior never accepts, as found by BehaviorDefinitionResolver.
ModelRulesReader finalReads 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 readonlyRepresents the configuration of a direct new construction whose class and assignment path are proven.
NewObjectConfigurationResolver finalResolves the class and configuration of a direct new construction whose assignment path Yii makes certain.
NewObjectInvalidOptionTypeRule finalReports configuration values of a direct new construction that the property or setter Yii assigns them to never accepts.
NewObjectUnknownOptionRule finalReports configuration options of a direct new construction that Yii can’t assign to the constructed object.
ObjectConfigurationReader finalReads the options of a Yii object configuration whose keys are proven by literals or by PHPStan’s native types.
ObjectOptionAssignment finalDecides 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 readonlyRepresents an option of a behavior configuration that the created Behavior can’t assign, as found by BehaviorDefinitionResolver.
ValidatorConfiguration final readonlyRepresents the configuration of a Model::rules() entry whose created Validator and assignment path are proven.
ValidatorConfigurationResolver final readonlyResolves 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 finalReports 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 finalReports 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 readonlyReports option values written in model validation rules that the property or setter of the validator Yii creates never accepts.
ValidatorMissingRequiredOptionRule final readonlyReports 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 readonlyReports unknown options in model validation rules using closures, qualified classes or Yii’s declared built-in aliases.
WidgetConfiguration final readonlyRepresents the configuration of a Widget::widget() or Widget::begin() call whose class and assignment path are proven.
WidgetConfigurationResolver finalResolves the widget class and options of a Widget::widget() or Widget::begin() call whose assignment path Yii makes certain.
WidgetInvalidOptionTypeRule finalReports Widget::widget() and Widget::begin() option values that the property or setter Yii assigns them to never accepts.
WidgetUnknownOptionRule finalReports Widget::widget() and Widget::begin() options that Yii can’t assign to the created widget.