This breaking change is listed in the release notes of Mockito 5: https://github.com/mockito/mockito/releases/tag/v5.0.0 @hensan64 Good catch on the wrong JavaDoc for these methods. Let me add these caveats to the JavaDoc.
Mockito 5 any() does not match a vararg int[] argument anymore. I need to use any(int[].class) to get the ArgumentMatcher to work
Mockito 5.2.0/5.3.1 any() ArgumentMatcher does not match a vararg int[] argument anymore.
I need to use any(int[].class) to get the ArgumentMatcher to work.

This mocking does NOT WORK:
when(myMock.myMethod(eq(myOtherMock), any()).thenReturn(myResultMap);

This mocking DOES WORK:
when(myMock.myMethod(eq(myOtherMock), any(int[].class))).thenReturn(myResultMap);



src/main/java/org/mockito/ArgumentMatchers.java
src/main/java/org/mockito/ArgumentMatchers.java
diff --git a/src/main/java/org/mockito/ArgumentMatchers.java b/src/main/java/org/mockito/ArgumentMatchers.java
index 6e83f8e847..05580a7c29 100644
--- a/src/main/java/org/mockito/ArgumentMatchers.java
+++ b/src/main/java/org/mockito/ArgumentMatchers.java
@@ -115,7 +115,7 @@
 public class ArgumentMatchers {
 
     /**
-     * Matches <strong>anything</strong>, including nulls and varargs.
+     * Matches <strong>anything</strong>, including nulls.
      *
      * <p>
      * See examples in javadoc for {@link ArgumentMatchers} class
@@ -125,7 +125,8 @@ public class ArgumentMatchers {
      * <strong>Notes : </strong><br/>
      * <ul>
      *     <li>For primitive types use {@link #anyChar()} family or {@link #isA(Class)} or {@link #any(Class)}.</li>
-     *     <li>Since mockito 2.1.0 {@link #any(Class)} is not anymore an alias of this method.</li>
+     *     <li>Since Mockito 2.1.0 {@link #any(Class)} is not anymore an alias of this method.</li>
+     *     <li>Since Mockito 5.0.0 this no longer matches varargs. Use {@link #any(Class)} instead.</li>
      * </ul>
      * </p>
      *
@@ -162,7 +163,8 @@ public static <T> T any() {
      * <ul>
      *     <li>For primitive types use {@link #anyChar()} family.</li>
      *     <li>Since Mockito 2.1.0 this method will perform a type check thus <code>null</code> values are not authorized.</li>
-     *     <li>Since mockito 2.1.0 {@link #any()} is no longer an alias of this method.</li>
+     *     <li>Since Mockito 2.1.0 {@link #any()} is no longer an alias of this method.</li>
+     *     <li>Since Mockito 5.0.0 this method can match varargs if the array type is specified, for example <code>any(String[].class)</code>.</li>
      * </ul>
      * </p>
      *
