We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a7236 commit c056735Copy full SHA for c056735
src/User/AdminIdentity.php
@@ -20,13 +20,13 @@ public function __construct(
20
?array $roles = null,
21
?iterable $data = null,
22
?string $name = null,
23
- ?string $avatarUrl = null
+ ?string $avatarUrl = null,
24
) {
25
parent::__construct($id, $roles, $data);
26
$this->name = $name;
27
if ($avatarUrl !== null) {
28
if (Validators::isUrl($avatarUrl) === false) {
29
- throw new \InvalidArgumentException('Avatar URL is not valid URL, because "' . $avatarUrl . '" given.');
+ throw new \InvalidArgumentException(sprintf('Avatar URL is not valid URL, because "%s" given.', $avatarUrl));
30
}
31
$this->avatarUrl = $avatarUrl;
32
0 commit comments