Skip to content

Commit

Permalink
Fixed incorrect adapter doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 15, 2019
1 parent 0176075 commit fdecd58
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Repository/Adapter/ApacheAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function isSupported()
*
* @param string $name
*
* @return \PhpOption\Option<string>
* @return \PhpOption\Option<string|null>
*/
public function get($name)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/Adapter/ArrayAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function isSupported()
*
* @param string $name
*
* @return \PhpOption\Option<string>
* @return \PhpOption\Option<string|null>
*/
public function get($name)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/Adapter/EnvConstAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function isSupported()
*
* @param string $name
*
* @return \PhpOption\Option<string>
* @return \PhpOption\Option<string|null>
*/
public function get($name)
{
Expand Down
3 changes: 2 additions & 1 deletion src/Repository/Adapter/PutenvAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public function isSupported()
*
* @param string $name
*
* @return \PhpOption\Option<string>
* @return \PhpOption\Option<string|null>
*/
public function get($name)
{
/** @var \PhpOption\Option<string|null> */
return Option::fromValue(getenv($name), false);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Repository/Adapter/ReaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface ReaderInterface extends AvailabilityInterface
*
* @param string $name
*
* @return \PhpOption\Option<string>
* @return \PhpOption\Option<string|null>
*/
public function get($name);
}
2 changes: 1 addition & 1 deletion src/Repository/Adapter/ServerConstAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function isSupported()
*
* @param string $name
*
* @return \PhpOption\Option<string>
* @return \PhpOption\Option<string|null>
*/
public function get($name)
{
Expand Down

0 comments on commit fdecd58

Please sign in to comment.