File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -20,27 +20,20 @@ abstract class Regex extends ScalarType
20
20
* @param string|null $description A description for the type.
21
21
* @param string $regex The regular expression that is validated against.
22
22
*
23
- * @return static
23
+ * @return Regex
24
24
*/
25
25
public static function make (string $ name , ?string $ description , string $ regex ): self
26
26
{
27
27
$ concreteRegex = new class () extends Regex {
28
28
/**
29
29
* The regex that values are validated against.
30
30
*
31
- * Is set dynamically during this class creation.
31
+ * Is set dynamically during this class's creation.
32
32
*
33
33
* @var string
34
34
*/
35
35
public static $ regex ;
36
36
37
- /**
38
- * Return the Regex that the values are validated against.
39
- *
40
- * Must be a valid
41
- *
42
- * @return string
43
- */
44
37
public static function regex (): string
45
38
{
46
39
return static ::$ regex ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ abstract class StringScalar extends ScalarType
19
19
* @param string|null $description A description for the type.
20
20
* @param callable $isValid A function that returns a boolean whether a given string is valid.
21
21
*
22
- * @return static
22
+ * @return StringScalar
23
23
*/
24
24
public static function make (string $ name , ?string $ description , callable $ isValid ): self
25
25
{
You can’t perform that action at this time.
0 commit comments