Commit d9215a0
committed
feature #57618 [TypeInfo] Add
This PR was merged into the 7.2 branch.
Discussion
----------
[TypeInfo] Add `PhpDocAwareReflectionTypeResolver`
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues |
| License | MIT
Add a `PhpDocAwareReflectionTypeResolver` that resolves type on reflections prioritizing PHP documentation.
The same feature already exists in the `PropertyInfo` component and improves DX a lot.
Installing `phpstan/phpdoc-parser` automatically enables this feature both using the type-info component standalone and the fullstack framework.
Commits
-------
c6698ced09 [TypeInfo] Add PhpDocAwareReflectionTypeResolverPhpDocAwareReflectionTypeResolver (mtarld)1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
1974 | 1975 | | |
1975 | 1976 | | |
1976 | 1977 | | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
1977 | 1985 | | |
1978 | 1986 | | |
1979 | | - | |
| 1987 | + | |
1980 | 1988 | | |
1981 | | - | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1982 | 1993 | | |
1983 | 1994 | | |
1984 | 1995 | | |
| |||
0 commit comments