Skip to content

Commit ce9061b

Browse files
committed
Update README.md
1 parent e02b674 commit ce9061b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ shipped by Magento. Once those problems are fixed in Magento, those mocks can be
4343
### TestFramework autoloader
4444
The extension provides an autoloader for `Magento\TestFramework` classes to let you run PHPStan also against your test classes.
4545

46+
#### TestFramework ObjectManager type hints
47+
A type extension was added so that `Magento\Framework\TestFramework\Unit\Helper\ObjectManager` calls return the correct return type.
48+
Additionally, a PHPStan rule was added to check that only `Magento\Framework\Data\Collection` sub classes can be passed to
49+
`Magento\Framework\TestFramework\Unit\Helper\ObjectManager::getCollectionMock()`.
50+
4651
### ObjectManager type hints
47-
A type extension was added so that `ObjectManager` calls return the correct return type.
52+
A type extension was added so that `Magento\Framework\App\ObjectManager` calls return the correct return type.
4853

4954
### Support for magic method calls
50-
For some classes like the `DataObject` or the `SessionManager` logic was added to be able to support magic method calls.
55+
For some classes like the `Magento\Framework\DataObject` or `Magento\Framework\Session\SessionManager` logic was added
56+
to be able to support magic method calls.
5157

5258
### PHPStan rules
5359

0 commit comments

Comments
 (0)