Skip to content

Commit 439675a

Browse files
Dont call sprintf() when no placeholders are used
1 parent 9b50afd commit 439675a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function validatePropertyValue($containingValue, $property, $value, $grou
151151
? '"'.$containingValue.'"'
152152
: 'the value of type '.gettype($containingValue);
153153

154-
throw new ValidatorException(sprintf('The metadata for '.$valueAsString.' does not support properties.'));
154+
throw new ValidatorException(sprintf('The metadata for %s does not support properties.', $valueAsString));
155155
}
156156

157157
// If $containingValue is passed as class name, take $value as root

0 commit comments

Comments
 (0)