Skip to content

Commit a2df0f8

Browse files
docs: Clarify exception documentation and improve type inference descriptions in test cases. (#57)
1 parent 7c43584 commit a2df0f8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Bug #54: Update `PHPStan` `tmpDir` config; move `runtime` directory to `root`; update docs (@terabytesoftw)
2525
- Bug #55: Remove `OS` and `PHP` version specifications from workflow files for simplification (@terabytesoftw)
2626
- Enh #56: Add `ServiceLocatorDynamicMethodReturnTypeExtension` to provide precise type inference for `get()` method (@terabytesoftw)
27+
- Bug #57: Clarify exception documentation and improve type inference descriptions in test cases (@terabytesoftw)
2728

2829
## 0.2.3 June 09, 2025
2930

tests/data/type/ActiveQueryDynamicMethodReturnType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testReturnMyActiveRecordArrayWhenObjectsWithCondition(): void
109109
}
110110

111111
/**
112-
* @throws Exception
112+
* @throws Exception if an unexpected error occurs during execution.
113113
*/
114114
public function testReturnMyActiveRecordOrNullWhenChainedWithOne(): void
115115
{

tests/type/ContainerDynamicMethodReturnTypeExtensionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
* access.
1717
*
1818
* The test class loads type assertions from a fixture file and delegates checks to the parent
19-
* {@see TypeInferenceTestCase}, ensuring that extension logic for container dynamic method return types is robust and
20-
* consistent with expected behavior.
19+
* {@see TypeInferenceTestCase}, ensuring that extension logic for {@see Container} dynamic method return types is
20+
* robust and consistent with expected behavior.
2121
*
2222
* Key features.
23-
* - Ensures compatibility with PHPStan extension configuration for container dynamic return types.
23+
* - Ensures compatibility with PHPStan extension configuration.
2424
* - Loads and executes type assertions from a dedicated fixture file.
2525
* - Uses PHPUnit DataProvider for parameterized test execution.
26-
* - Validates type inference for dynamic service resolution and property access.
26+
* - Validates type inference for chained query methods and result types.
2727
*
2828
* @copyright Copyright (C) 2023 Terabytesoftw.
2929
* @license https://opensource.org/license/bsd-3-clause BSD 3-Clause License.

0 commit comments

Comments
 (0)