Skip to content

Commit 2508028

Browse files
More phpdoc fixes
1 parent f1d0fb7 commit 2508028

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

src/Loader/Lines.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static function looksLikeMultilineStop($line, $started)
105105
*
106106
* @param string $line
107107
*
108-
* @return bool
108+
* @return bool[]
109109
*/
110110
private static function getCharPairs($line)
111111
{

src/Loader/Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Parser
2323
*
2424
* @throws \Dotenv\Exception\InvalidFileException
2525
*
26-
* @return array
26+
* @return array<string|null>
2727
*/
2828
public static function parse($entry)
2929
{
@@ -39,7 +39,7 @@ public static function parse($entry)
3939
*
4040
* @throws \Dotenv\Exception\InvalidFileException
4141
*
42-
* @return array
42+
* @return array<string|null>
4343
*/
4444
private static function splitStringIntoParts($line)
4545
{
@@ -129,7 +129,7 @@ private static function parseValue($value)
129129
* @param int $state
130130
* @param string $char
131131
*
132-
* @return array
132+
* @return \Dotenv\Result\Result
133133
*/
134134
private static function processChar($state, $char)
135135
{

src/Loader/Value.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,21 @@ public function append($char, $var)
5858
);
5959
}
6060

61+
/**
62+
* Get the string representation of the parsed value.
63+
*
64+
* @return string
65+
*/
6166
public function getChars()
6267
{
6368
return $this->chars;
6469
}
6570

71+
/**
72+
* Get the locations of the variables in the value.
73+
*
74+
* @return int[]
75+
*/
6676
public function getVars()
6777
{
6878
$vars = $this->vars;

src/Repository/AdapterRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class AdapterRepository extends AbstractRepository
77
/**
88
* The set of readers to use.
99
*
10-
* @var \Dotenv\Repository\Adapter\ReadersInterface[]
10+
* @var \Dotenv\Repository\Adapter\ReaderInterface[]
1111
*/
1212
protected $readers;
1313

1414
/**
1515
* The set of writers to use.
1616
*
17-
* @var \Dotenv\Repository\Adapter\WritersInterface[]
17+
* @var \Dotenv\Repository\Adapter\WriterInterface[]
1818
*/
1919
protected $writers;
2020

src/Repository/RepositoryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class RepositoryBuilder
1313
/**
1414
* The set of readers to use.
1515
*
16-
* @var \Dotenv\Repository\Adapter\ReadersInterface[]|null
16+
* @var \Dotenv\Repository\Adapter\ReaderInterface[]|null
1717
*/
1818
private $readers;
1919

2020
/**
2121
* The set of writers to use.
2222
*
23-
* @var \Dotenv\Repository\Adapter\WritersInterface[]|null
23+
* @var \Dotenv\Repository\Adapter\WriterInterface[]|null
2424
*/
2525
private $writers;
2626

src/Store/StoreBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function create()
5858
*
5959
* @param string|string[] $paths
6060
*
61-
* @return \Dotenv\Repository\RepositoryBuilder
61+
* @return \Dotenv\Store\StoreBuilder
6262
*/
6363
public function withPaths($paths)
6464
{

0 commit comments

Comments
 (0)