Skip to content

Commit 56dba3b

Browse files
shaedrichtegos
authored andcommitted
Add type hints to \Illuminate\Support\Str (laravel#57096)
1 parent a29fd47 commit 56dba3b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Illuminate/Support/Str.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,42 +34,42 @@ class Str
3434
/**
3535
* The cache of snake-cased words.
3636
*
37-
* @var array
37+
* @var array<string, string>
3838
*/
3939
protected static $snakeCache = [];
4040

4141
/**
4242
* The cache of camel-cased words.
4343
*
44-
* @var array
44+
* @var array<string, string>
4545
*/
4646
protected static $camelCache = [];
4747

4848
/**
4949
* The cache of studly-cased words.
5050
*
51-
* @var array
51+
* @var array<string, string>
5252
*/
5353
protected static $studlyCache = [];
5454

5555
/**
5656
* The callback that should be used to generate UUIDs.
5757
*
58-
* @var callable|null
58+
* @var (callable(): \Ramsey\Uuid\UuidInterface)|null
5959
*/
6060
protected static $uuidFactory;
6161

6262
/**
6363
* The callback that should be used to generate ULIDs.
6464
*
65-
* @var callable|null
65+
* @var (callable(): \Symfony\Component\Uid\Ulid)|null
6666
*/
6767
protected static $ulidFactory;
6868

6969
/**
7070
* The callback that should be used to generate random strings.
7171
*
72-
* @var callable|null
72+
* @var (callable(int): string)|null
7373
*/
7474
protected static $randomStringFactory;
7575

0 commit comments

Comments
 (0)