Skip to content

Commit 8fb37a0

Browse files
committed
Fix docblocks
1 parent 0f5d17d commit 8fb37a0

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/Regex.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,20 @@ abstract class Regex extends ScalarType
2020
* @param string|null $description A description for the type.
2121
* @param string $regex The regular expression that is validated against.
2222
*
23-
* @return static
23+
* @return Regex
2424
*/
2525
public static function make(string $name, ?string $description, string $regex): self
2626
{
2727
$concreteRegex = new class() extends Regex {
2828
/**
2929
* The regex that values are validated against.
3030
*
31-
* Is set dynamically during this class creation.
31+
* Is set dynamically during this class's creation.
3232
*
3333
* @var string
3434
*/
3535
public static $regex;
3636

37-
/**
38-
* Return the Regex that the values are validated against.
39-
*
40-
* Must be a valid
41-
*
42-
* @return string
43-
*/
4437
public static function regex(): string
4538
{
4639
return static::$regex;

src/StringScalar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ abstract class StringScalar extends ScalarType
1919
* @param string|null $description A description for the type.
2020
* @param callable $isValid A function that returns a boolean whether a given string is valid.
2121
*
22-
* @return static
22+
* @return StringScalar
2323
*/
2424
public static function make(string $name, ?string $description, callable $isValid): self
2525
{

0 commit comments

Comments
 (0)