Open bugreportuser opened 1 year ago
When an array element is passed by reference, its type is not expanded, which causes some assertions to be inaccurate.
Example: https://psalm.dev/r/137ffbc3fa
The DocblockTypeContradiction issue is misleading. When the code is run, it has the following output:
DocblockTypeContradiction
int(0)
I found these snippets:
When an array element is passed by reference, its type is not expanded, which causes some assertions to be inaccurate.
Example: https://psalm.dev/r/137ffbc3fa
The
DocblockTypeContradiction
issue is misleading. When the code is run, it has the following output: