|
48 | 48 | * - Integration with PHPStan type combinators and file type mapper for accurate analysis. |
49 | 49 | * - Support for union, array, and generic object types in method return values. |
50 | 50 | * |
51 | | - * @see ActiveQuery for query API details. |
| 51 | + * @see ActiveQuery for Active Query API details. |
52 | 52 | * @see DynamicMethodReturnTypeExtension for PHPStan dynamic return type extension contract. |
53 | 53 | * |
54 | 54 | * @copyright Copyright (C) 2023 Terabytesoftw. |
@@ -107,7 +107,7 @@ public function getClass(): string |
107 | 107 | * - For {@see ActiveQuery::one()}: a union of the model type and null. |
108 | 108 | * - For other methods: the result of {@see handleDefaultCase()}. |
109 | 109 | * |
110 | | - * @param MethodReflection $methodReflection Reflection for the called method. |
| 110 | + * @param MethodReflection $methodReflection Reflection instance for the method being analyzed. |
111 | 111 | * @param MethodCall $methodCall AST node for the method call expression. |
112 | 112 | * @param Scope $scope PHPStan analysis scope for type resolution. |
113 | 113 | * |
@@ -383,7 +383,7 @@ private function getArrayTypeFromModelProperties(Type $modelType): Type |
383 | 383 | * This method is used internally by the dynamic return type extension to support accurate type inference for |
384 | 384 | * {@see ActiveQuery::asArray()} calls during static analysis. |
385 | 385 | * |
386 | | - * @param MethodCall $methodCall AST node for the {@see asArray()} method call. |
| 386 | + * @param MethodCall $methodCall AST node for the method call expression. |
387 | 387 | * @param Scope $scope PHPStan analysis scope for type resolution. |
388 | 388 | * |
389 | 389 | * @return Type Type of the first argument if present, or {@see ConstantBooleanType} `true` if not provided. |
@@ -413,7 +413,7 @@ private function getAsArrayArgument(MethodCall $methodCall, Scope $scope): Type |
413 | 413 | * This method enables precise type inference for chained {@see asArray()} calls, ensuring that the correct type is |
414 | 414 | * propagated for subsequent method calls on the {@see ActiveQuery} instance during static analysis. |
415 | 415 | * |
416 | | - * @param MethodCall $methodCall AST node for the {@see asArray()} method call. |
| 416 | + * @param MethodCall $methodCall AST node for the method call expression. |
417 | 417 | * @param Scope $scope PHPStan analysis scope for type resolution. |
418 | 418 | * @param Type $modelType Model type extracted from the generic {@see ActiveQuery} instance. |
419 | 419 | * |
@@ -450,7 +450,7 @@ private function handleAsArray(MethodCall $methodCall, Scope $scope, Type $model |
450 | 450 | * This ensures that fluent interface methods maintain correct generic type propagation for static analysis and IDE |
451 | 451 | * support. |
452 | 452 | * |
453 | | - * @param MethodReflection $methodReflection Reflection for the called method. |
| 453 | + * @param MethodReflection $methodReflection Reflection instance for the method being analyzed. |
454 | 454 | * @param Type $calledOnType Type on which the method is called. |
455 | 455 | * @param Type $modelType Model type extracted from the generic {@see ActiveQuery} instance. |
456 | 456 | * |
|
0 commit comments