Skip to content

Commit f9a5422

Browse files
fix: Refactor PHPDoc comments for consistency and clarity. (#41)
1 parent 32f1af9 commit f9a5422

21 files changed

+30
-29
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
- Enh #37: Enhance `DI` container type inference and testing (@terabytesoftw)
88
- Bug #38: Correct exception message formatting in `ServiceMapServiceTest` (@terabytesoftw)
99
- Bug #39: Resolve `Container::get()` type inference for unconfigured classes in config (`ServiceMap`) (@terabytesoftw)
10-
- Enh #40: Enhance `PHPStan` analysis for `Behavior` type inference and testing.
10+
- Enh #40: Enhance `PHPStan` analysis for `Behavior` type inference and testing (@terabytesoftw)
11+
- Enh #41: Refactor `PHPDoc` comments for consistency and clarity (@terabytesoftw)
1112

1213
## 0.2.3 June 09, 2025
1314

src/reflection/ApplicationPropertiesClassReflectionExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Provides property reflection for Yii application components in PHPStan analysis.
2121
*
22-
* Integrates Yii's dependency injection and service map with PHPStan's property reflection system, enabling accurate
22+
* Integrates Yii's dependency injection and service map with PHPStan property reflection system, enabling accurate
2323
* type inference and autocompletion for dynamic application components and services.
2424
*
2525
* This extension allows PHPStan to recognize properties on the Yii application instance that are defined via
@@ -33,7 +33,7 @@
3333
*
3434
* Key features.
3535
* - Enables accurate type inference for injected services and components.
36-
* - Ensures compatibility with PHPStan's strict analysis and autocompletion.
36+
* - Ensures compatibility with PHPStan strict analysis and autocompletion.
3737
* - Handles both base and web application contexts.
3838
* - Integrates annotation-based and native property reflection.
3939
* - Supports dynamic Yii application properties via service map lookup.

src/reflection/ComponentPropertyReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Key features.
2626
* - Accurate type reflection for dynamic Yii application components.
2727
* - Delegates property behavior to a fallback property reflection instance.
28-
* - Ensures compatibility with PHPStan's strict analysis and autocompletion.
28+
* - Ensures compatibility with PHPStan strict analysis and autocompletion.
2929
* - Integrates with service-map-based component resolution.
3030
* - Supports all property visibility and mutability checks.
3131
*

src/reflection/RequestMethodsClassReflectionExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Key features.
2828
* - Delegates method reflection to the web request class.
2929
* - Enables accurate type inference for shared request methods.
30-
* - Ensures compatibility with PHPStan's strict analysis and autocompletion.
30+
* - Ensures compatibility with PHPStan strict analysis and autocompletion.
3131
* - Handles both console and web request contexts.
3232
* - Supports dynamic method resolution for console requests.
3333
*

src/reflection/RequestPropertiesClassReflectionExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Key features.
3030
* - Delegates property reflection to the web request class.
3131
* - Enables accurate type inference for shared request properties.
32-
* - Ensures compatibility with PHPStan's strict analysis and autocompletion.
32+
* - Ensures compatibility with PHPStan strict analysis and autocompletion.
3333
* - Handles both console and web request contexts.
3434
* - Supports dynamic property resolution for console requests.
3535
*

src/reflection/ResponsePropertiesClassReflectionExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Key features.
3030
* - Delegates property reflection to the web response class.
3131
* - Enables accurate type inference for shared response properties.
32-
* - Ensures compatibility with PHPStan's strict analysis and autocompletion.
32+
* - Ensures compatibility with PHPStan strict analysis and autocompletion.
3333
* - Handles both console and web response contexts.
3434
* - Supports dynamic property resolution for console responses.
3535
*

src/reflection/UserPropertiesClassReflectionExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* while providing a custom reflection for the dynamic {@see User::identity] property.
3333
*
3434
* Key features.
35-
* - Ensures compatibility with PHPStan's strict analysis and autocompletion.
35+
* - Ensures compatibility with PHPStan strict analysis and autocompletion.
3636
* - Integrates annotation-based and native property reflection for the user component.
3737
* - Provides accurate type inference for the dynamic {@see User::identity] property.
3838
* - Supports dynamic and annotated property resolution for the user component.

src/type/ActiveQueryDynamicMethodReturnTypeExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* - Dynamic return type inference for {@see ActiveQuery::one()}, {@see ActiveQuery::all()}, and
4646
* {@see ActiveQuery::asArray()} methods.
4747
* - Extraction of model type from generic {@see ActiveQuery} instances.
48-
* - Integration with PHPStan's type combinators and file type mapper for accurate analysis.
48+
* - Integration with PHPStan type combinators and file type mapper for accurate analysis.
4949
* - Support for union, array, and generic object types in method return values.
5050
*
5151
* @see ActiveQuery for query API details.
@@ -80,7 +80,7 @@ public function __construct(
8080
* Specifies the fully qualified class name of the supported class, enabling PHPStan to associate this extension
8181
* with method calls on the {@see ActiveQuery} base class and its subclasses.
8282
*
83-
* This method is essential for registering the extension with PHPStan's type system, ensuring that static method
83+
* This method is essential for registering the extension with PHPStan type system, ensuring that static method
8484
* return type inference is applied to the correct class hierarchy during static analysis and IDE autocompletion.
8585
*
8686
* @return string Fully qualified class name of the supported {@see ActiveQuery} class.

src/type/ActiveRecordDynamicMethodReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* Key features.
3333
* - Accurate return type inference for {@see ActiveRecord::hasOne()} and {@see ActiveRecord::hasMany()} relation
3434
* methods.
35-
* - Compatibility with PHPStan's strict static analysis and autocompletion.
35+
* - Compatibility with PHPStan strict static analysis and autocompletion.
3636
* - Exception handling for invalid or missing arguments in relation method calls.
3737
* - Returns a generic {@see ActiveQuery} type with the related model class as type parameter.
3838
*

src/type/ActiveRecordDynamicStaticMethodReturnTypeExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* The implementation supports:
3737
* - Accurate return type inference for static ActiveRecord methods returning {@see ThisType}, {@see UnionType},
3838
* {@see ActiveQuery}, or custom {@see ActiveQuery} subclasses.
39-
* - Compatibility with PHPStan's strict static analysis and autocompletion.
39+
* - Compatibility with PHPStan strict static analysis and autocompletion.
4040
* - Model type preservation for generic {@see ActiveQuery} results.
4141
* - Nullability handling for methods like {@see ActiveRecord::findOne()}.
4242
* - Support for custom {@see ActiveQuery} subclasses and generic parameter propagation.
@@ -63,7 +63,7 @@ public function __construct(private readonly ReflectionProvider $reflectionProvi
6363
* Specifies the fully qualified class name of the supported class, enabling PHPStan to associate this extension
6464
* with static method calls on the {@see ActiveRecord} base class and its subclasses.
6565
*
66-
* This method is essential for registering the extension with PHPStan's type system, ensuring that static method
66+
* This method is essential for registering the extension with PHPStan type system, ensuring that static method
6767
* return type inference is applied to the correct class hierarchy during static analysis and IDE autocompletion.
6868
*
6969
* @return string Fully qualified class name of the supported {@see ActiveRecord} class.

0 commit comments

Comments
 (0)