Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabde64b

Browse files
committed
[Validator] Removed information from the violation output if the value is an array, object or resource
This was decided in the discussion ofsymfony#10687.
1 parentd6a783f commitabde64b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Validator/ConstraintValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ protected function formatValue($value, $prettyDateTime = false)
6767
}
6868

6969
if (is_object($value)) {
70-
return'Object('.get_class($value).')';
70+
return'object';
7171
}
7272

7373
if (is_array($value)) {
74-
return'Array';
74+
return'array';
7575
}
7676

7777
if (is_string($value)) {
7878
return'"'.$value.'"';
7979
}
8080

8181
if (is_resource($value)) {
82-
returnsprintf('Resource(%s#%d)',get_resource_type($value),$value);
82+
return'resource';
8383
}
8484

8585
if (null ===$value) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp