Skip to content

Commit

Permalink
Upgrade to dflydev/dot-access-data:^3 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
simensen authored Dec 9, 2022
1 parent 6d5492d commit 37aae62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"php": ">=7.4",
"dflydev/dot-access-data": "1.*",
"dflydev/dot-access-data": "^3",
"dflydev/placeholder-resolver": "1.*"
},
"require-dev": {
Expand Down
7 changes: 6 additions & 1 deletion src/Dflydev/DotAccessConfiguration/AbstractConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Dflydev\DotAccessConfiguration;

use Dflydev\DotAccessData\Data;
use Dflydev\DotAccessData\Exception\MissingPathException;
use Dflydev\PlaceholderResolver\PlaceholderResolverInterface;
use Dflydev\PlaceholderResolver\RegexPlaceholderResolver;

Expand All @@ -27,7 +28,11 @@ abstract class AbstractConfiguration implements ConfigurationInterface
*/
public function getRaw($key)
{
return $this->data()->get($key);
try {
return $this->data()->get($key);
} catch (MissingPathException $e) {
return null;
}
}

/**
Expand Down

0 comments on commit 37aae62

Please sign in to comment.