Skip to content

Commit 43586fe

Browse files
More specific array phpdoc for the public interface
1 parent f95536b commit 43586fe

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Dotenv.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function createImmutable($paths, $names = null, $shortCircuit = tr
111111
*
112112
* @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
113113
*
114-
* @return array<string|null>
114+
* @return array<string,string|null>
115115
*/
116116
public function load()
117117
{
@@ -123,7 +123,7 @@ public function load()
123123
*
124124
* @throws \Dotenv\Exception\InvalidFileException
125125
*
126-
* @return array<string|null>
126+
* @return array<string,string|null>
127127
*/
128128
public function safeLoad()
129129
{

src/Loader/Loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Loader implements LoaderInterface
1616
*
1717
* @throws \Dotenv\Exception\InvalidFileException
1818
*
19-
* @return array<string|null>
19+
* @return array<string,string|null>
2020
*/
2121
public function load(RepositoryInterface $repository, $content)
2222
{
@@ -37,7 +37,7 @@ public function load(RepositoryInterface $repository, $content)
3737
*
3838
* @throws \Dotenv\Exception\InvalidFileException
3939
*
40-
* @return array<string|null>
40+
* @return array<string.string|null>
4141
*/
4242
private static function processEntries(RepositoryInterface $repository, array $entries)
4343
{

src/Loader/LoaderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface LoaderInterface
1414
*
1515
* @throws \Dotenv\Exception\InvalidFileException
1616
*
17-
* @return array<string|null>
17+
* @return array<string,string|null>
1818
*/
1919
public function load(RepositoryInterface $repository, $content);
2020
}

src/Repository/Adapter/ArrayAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ArrayAdapter implements AvailabilityInterface, ReaderInterface, WriterInte
1010
/**
1111
* The variables and their values.
1212
*
13-
* @return array<string|null>
13+
* @return array<string,string|null>
1414
*/
1515
private $variables = [];
1616

0 commit comments

Comments
 (0)