You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 580f63b
Browse filesBrowse the repository at this point in the historyBrowse files
Leave callbacks collecting by spl_object_id() to TypeTraverser::map()
Keying collected values by the Type instance id only emulates
collecting every occurrence, so TypeTraverserMapMemoizedRule now treats
such a write as depending on the occurrences. ConditionalReturnTypeRuleHelper
and GenericCallableRuleHelper go back to map(); the latter still collects
the errors of every callable instead of keeping only the last one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
'Callback of TypeTraverser::map() does not depend on where or how many times a Type instance occurs. Use TypeTraverser::mapMemoized() instead.',
25
-
19,
25
+
20,
26
26
],
27
27
[
28
28
'Callback of TypeTraverser::map() does not depend on where or how many times a Type instance occurs. Use TypeTraverser::mapMemoized() instead.',
29
-
30,
29
+
31,
30
30
],
31
31
[
32
32
'Callback of TypeTraverser::map() does not depend on where or how many times a Type instance occurs. Use TypeTraverser::mapMemoized() instead.',
33
-
37,
33
+
38,
34
34
],
35
35
[
36
36
'Callback of TypeTraverser::map() does not depend on where or how many times a Type instance occurs. Use TypeTraverser::mapMemoized() instead.',
37
-
53,
37
+
54,
38
38
],
39
39
[
40
40
'Callback of TypeTraverser::mapMemoized() appends to $types captured by reference, so it might depend on where or how many times a Type instance occurs. Use TypeTraverser::map() instead.',
41
-
168,
41
+
169,
42
42
],
43
43
[
44
44
'Callback of TypeTraverser::mapMemoized() reads $found captured by reference that it also writes, so it might depend on where or how many times a Type instance occurs. Use TypeTraverser::map() instead.',
45
-
180,
45
+
181,
46
+
],
47
+
[
48
+
'Callback of TypeTraverser::mapMemoized() writes to $types captured by reference by spl_object_id(), so it might depend on where or how many times a Type instance occurs. Use TypeTraverser::map() instead.',
0 commit comments