We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3405ab1 commit 6ed582eCopy full SHA for 6ed582e
src/Collection/Complex/Email.php
@@ -35,7 +35,7 @@ class Email extends Text
35
use ValidatesAttributes;
36
37
/**
38
- * @var Collection
+ * @var Collection<int, string>
39
*/
40
protected Collection $split;
41
@@ -57,15 +57,15 @@ public function __construct(string|Stringable $value)
57
58
public function username(): string
59
{
60
- return $this->split->first();
+ return (string) $this->split->first();
61
}
62
63
64
* @return string
65
66
public function domain(): string
67
68
- return $this->split->last();
+ return (string) $this->split->last();
69
70
71
0 commit comments