File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/Dflydev/DotAccessConfiguration Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1919 ],
2020 "require" : {
2121 "php" : " >=7.4" ,
22- "dflydev/dot-access-data" : " 1.* " ,
22+ "dflydev/dot-access-data" : " ^3 " ,
2323 "dflydev/placeholder-resolver" : " 1.*"
2424 },
2525 "require-dev" : {
Original file line number Diff line number Diff line change 1212namespace Dflydev \DotAccessConfiguration ;
1313
1414use Dflydev \DotAccessData \Data ;
15+ use Dflydev \DotAccessData \Exception \MissingPathException ;
1516use Dflydev \PlaceholderResolver \PlaceholderResolverInterface ;
1617use Dflydev \PlaceholderResolver \RegexPlaceholderResolver ;
1718
@@ -27,7 +28,11 @@ abstract class AbstractConfiguration implements ConfigurationInterface
2728 */
2829 public function getRaw ($ key )
2930 {
30- return $ this ->data ()->get ($ key );
31+ try {
32+ return $ this ->data ()->get ($ key );
33+ } catch (MissingPathException $ e ) {
34+ return null ;
35+ }
3136 }
3237
3338 /**
You can’t perform that action at this time.
0 commit comments