# yii2\extensions\phpstan\type

> 9 classes of the yii2\extensions\phpstan\type namespace.

[API reference](/docs/api/index.md) › [PHPStan](/docs/extensions/phpstan/reference/index.md) › type

## Classes

| Class | Summary |
| --- | --- |
| [`ActiveQueryDynamicMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/activequerydynamicmethodreturntypeextension/index.md) final | Infers the row array shape of [`ActiveQuery::asArray()`](/docs/api/yii/db/activequery/index.md#method-asArray) queries from the model's class-level `@property` tags. |
| [`ActiveRecordGetAttributeDynamicMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/activerecordgetattributedynamicmethodreturntypeextension/index.md) final | Infers return types for [`ActiveRecord::getAttribute()`](/docs/api/yii/db/baseactiverecord/index.md#method-getAttribute) calls in PHPStan analysis. |
| [`ActiveRecordQueryDynamicStaticMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/activerecordquerydynamicstaticmethodreturntypeextension/index.md) final | Binds the rows of the [`ActiveQuery`](/docs/api/yii/db/activequery/index.md) returned by an [`ActiveRecord`](/docs/api/yii/db/activerecord/index.md) static method to the called model. |
| [`ApplicationTypeNodeResolverExtension`](/docs/extensions/phpstan/reference/type/applicationtypenoderesolverextension/index.md) final | Resolves the PHPDoc types of `Yii::$app` and `Module::$params` declared by the stub shipped with this extension. |
| [`ContainerDynamicMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/containerdynamicmethodreturntypeextension/index.md) final | Resolves [`Container::get()`](/docs/api/yii/di/container/index.md#method-get) calls for service IDs defined in the Yii configuration to their configured class. |
| [`HeaderCollectionDynamicMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/headercollectiondynamicmethodreturntypeextension/index.md) final | Removes `null` from the [`HeaderCollection::get()`](/docs/api/yii/web/headercollection/index.md#method-get) return type when the `$default` argument cannot be `null`. |
| [`LoggerMessagesExpressionTypeResolverExtension`](/docs/extensions/phpstan/reference/type/loggermessagesexpressiontyperesolverextension/index.md) final | Infers the documented tuple shape for Yii logger and log-target message buffers. |
| [`ServiceLocatorDynamicMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/servicelocatordynamicmethodreturntypeextension/index.md) final | Resolves [`ServiceLocator::get()`](/docs/api/yii/di/servicelocator/index.md#method-get) calls for component IDs configured in the Yii application to their class. |
| [`TargetFilterMessagesDynamicStaticMethodReturnTypeExtension`](/docs/extensions/phpstan/reference/type/targetfiltermessagesdynamicstaticmethodreturntypeextension/index.md) final | Preserves Yii log-message key and value types through [`Target::filterMessages()`](/docs/api/yii/log/target/index.md#method-filterMessages) calls. |