Skip to content

Commit 78bef1a

Browse files
committed
Apply review
1 parent 692e284 commit 78bef1a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/type-inference.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ Since PHPStan's dynamic return type extensions work on classes, not traits, this
1111
in test cases extending `CodeIgniter\Test\CIUnitTestCase`. To make this work, you should be calling the method
1212
**statically**:
1313

14-
For example, we're accessing the private method `Foo::privateMethod()` which accepts a string parameter and returns bool.
14+
For example, we're accessing the private method:
15+
```php
16+
class Foo
17+
{
18+
private static function privateMethod(string $value): bool
19+
{
20+
return true;
21+
}
22+
}
23+
```
1524

1625
**Before**
1726
```php

0 commit comments

Comments
 (0)