Skip to content

Commit

Permalink
More phpdoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 12, 2019
1 parent f1d0fb7 commit 2508028
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Loader/Lines.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static function looksLikeMultilineStop($line, $started)
*
* @param string $line
*
* @return bool
* @return bool[]
*/
private static function getCharPairs($line)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Loader/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Parser
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return array
* @return array<string|null>
*/
public static function parse($entry)
{
Expand All @@ -39,7 +39,7 @@ public static function parse($entry)
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return array
* @return array<string|null>
*/
private static function splitStringIntoParts($line)
{
Expand Down Expand Up @@ -129,7 +129,7 @@ private static function parseValue($value)
* @param int $state
* @param string $char
*
* @return array
* @return \Dotenv\Result\Result
*/
private static function processChar($state, $char)
{
Expand Down
10 changes: 10 additions & 0 deletions src/Loader/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,21 @@ public function append($char, $var)
);
}

/**
* Get the string representation of the parsed value.
*
* @return string
*/
public function getChars()
{
return $this->chars;
}

/**
* Get the locations of the variables in the value.
*
* @return int[]
*/
public function getVars()
{
$vars = $this->vars;
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/AdapterRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class AdapterRepository extends AbstractRepository
/**
* The set of readers to use.
*
* @var \Dotenv\Repository\Adapter\ReadersInterface[]
* @var \Dotenv\Repository\Adapter\ReaderInterface[]
*/
protected $readers;

/**
* The set of writers to use.
*
* @var \Dotenv\Repository\Adapter\WritersInterface[]
* @var \Dotenv\Repository\Adapter\WriterInterface[]
*/
protected $writers;

Expand Down
4 changes: 2 additions & 2 deletions src/Repository/RepositoryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class RepositoryBuilder
/**
* The set of readers to use.
*
* @var \Dotenv\Repository\Adapter\ReadersInterface[]|null
* @var \Dotenv\Repository\Adapter\ReaderInterface[]|null
*/
private $readers;

/**
* The set of writers to use.
*
* @var \Dotenv\Repository\Adapter\WritersInterface[]|null
* @var \Dotenv\Repository\Adapter\WriterInterface[]|null
*/
private $writers;

Expand Down
2 changes: 1 addition & 1 deletion src/Store/StoreBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function create()
*
* @param string|string[] $paths
*
* @return \Dotenv\Repository\RepositoryBuilder
* @return \Dotenv\Store\StoreBuilder
*/
public function withPaths($paths)
{
Expand Down

0 comments on commit 2508028

Please sign in to comment.