@@ -71,7 +71,9 @@ public function __construct(array $constraints, bool $allowMissing = false, bool
7171 }
7272
7373 /**
74- * {@inheritDoc}
74+ * Returns a human-readable string representation of this Constraint.
75+ *
76+ * @return string string representation of the Constraint
7577 */
7678 public function toString (): string
7779 {
@@ -105,7 +107,11 @@ public function toString(): string
105107 }
106108
107109 /**
108- * {@inheritDoc}
110+ * Returns whether the given value matches the Constraint.
111+ *
112+ * @param mixed $other the value to evaluate
113+ *
114+ * @return bool boolean indicating whether the value matches the Constraint
109115 */
110116 protected function matches ($ other ): bool
111117 {
@@ -130,7 +136,7 @@ protected function matches($other): bool
130136 }
131137
132138 /**
133- * {@inheritDoc}
139+ * Returns the number of assertions performed by this Constraint.
134140 */
135141 public function count (): int
136142 {
@@ -143,7 +149,14 @@ public function count(): int
143149 }
144150
145151 /**
146- * {@inheritDoc}
152+ * Returns the description of the failure.
153+ *
154+ * The beginning of failure messages is "Failed asserting that" in most
155+ * cases. This method should return the second part of that sentence.
156+ *
157+ * @param mixed $other evaluated value
158+ *
159+ * @return string the failure description
147160 */
148161 protected function failureDescription ($ other ): string
149162 {
@@ -155,7 +168,11 @@ protected function failureDescription($other): string
155168 }
156169
157170 /**
158- * {@inheritDoc}
171+ * Returns additional failure description.
172+ *
173+ * @param mixed $other the evaluated value
174+ *
175+ * @return string the failure description
159176 */
160177 protected function additionalFailureDescription ($ other ): string
161178 {
0 commit comments