File tree Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public function offsetUnset($offset)
184
184
*
185
185
* @param string|string[] $codes The codes to find
186
186
*
187
- * @return static new instance which contains only specific errors
187
+ * @return static
188
188
*/
189
189
public function findByCodes ($ codes )
190
190
{
Original file line number Diff line number Diff line change @@ -91,8 +91,7 @@ public function hasPropertyMetadata(string $property);
91
91
*
92
92
* @param string $property The property name
93
93
*
94
- * @return PropertyMetadataInterface[] A list of metadata instances. Empty if
95
- * no metadata exists for the property.
94
+ * @return PropertyMetadataInterface[]
96
95
*/
97
96
public function getPropertyMetadata (string $ property );
98
97
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Validator \Mapping \Loader ;
13
13
14
14
use Symfony \Component \Config \Util \XmlUtils ;
15
+ use Symfony \Component \Validator \Constraint ;
15
16
use Symfony \Component \Validator \Exception \MappingException ;
16
17
use Symfony \Component \Validator \Mapping \ClassMetadata ;
17
18
@@ -68,7 +69,7 @@ public function getMappedClasses()
68
69
*
69
70
* @param \SimpleXMLElement $nodes The XML nodes
70
71
*
71
- * @return array The Constraint instances
72
+ * @return Constraint[]
72
73
*/
73
74
protected function parseConstraints (\SimpleXMLElement $ nodes )
74
75
{
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Validator \Mapping \Loader ;
13
13
14
+ use Symfony \Component \Validator \Constraint ;
14
15
use Symfony \Component \Validator \Mapping \ClassMetadata ;
15
16
use Symfony \Component \Yaml \Exception \ParseException ;
16
17
use Symfony \Component \Yaml \Parser as YamlParser ;
@@ -76,7 +77,7 @@ public function getMappedClasses()
76
77
*
77
78
* @param array $nodes The YAML nodes
78
79
*
79
- * @return array An array of values or Constraint instances
80
+ * @return array< array|scalar| Constraint>
80
81
*/
81
82
protected function parseNodes (array $ nodes )
82
83
{
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ public function isPrivate($objectOrClassName)
158
158
*
159
159
* @param object|string $objectOrClassName The object or the class name
160
160
*
161
- * @return \ReflectionMethod|\ReflectionProperty The reflection instance
161
+ * @return \ReflectionMethod|\ReflectionProperty
162
162
*/
163
163
public function getReflectionMember ($ objectOrClassName )
164
164
{
@@ -177,7 +177,7 @@ public function getReflectionMember($objectOrClassName)
177
177
*
178
178
* @param object|string $objectOrClassName The object or the class name
179
179
*
180
- * @return \ReflectionMethod|\ReflectionProperty The reflection instance
180
+ * @return \ReflectionMethod|\ReflectionProperty
181
181
*/
182
182
abstract protected function newReflectionMember ($ objectOrClassName );
183
183
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function getTraversalStrategy();
51
51
/**
52
52
* Returns all constraints of this element.
53
53
*
54
- * @return Constraint[] A list of Constraint instances
54
+ * @return Constraint[]
55
55
*/
56
56
public function getConstraints ();
57
57
You can’t perform that action at this time.
0 commit comments