File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3838 "orchestra/testbench" : " ^9.2" ,
3939 "phpunit/phpunit" : " ^10.5" ,
4040 "spatie/phpunit-snapshot-assertions" : " ^4 || ^5" ,
41- "vimeo/psalm" : " ^5.4"
41+ "vimeo/psalm" : " ^5.4" ,
42+ "vlucas/phpdotenv" : " ^5"
4243 },
4344 "suggest" : {
4445 "illuminate/events" : " Required for automatic helper generation (^6|^7|^8|^9|^10|^11)."
Original file line number Diff line number Diff line change @@ -338,8 +338,13 @@ protected function getOptions()
338338
339339 protected function getEnv ()
340340 {
341+ $ envPath = base_path ('.env ' );
342+ if (!file_exists ($ envPath )) {
343+ return [];
344+ }
345+
341346 $ parser = new Parser ();
342- $ entries = $ parser ->parse (file_get_contents (base_path ( ' .env ' ) ));
347+ $ entries = $ parser ->parse (file_get_contents ($ envPath ));
343348
344349 return collect ($ entries )->map (function (Entry $ entry ) {
345350 return $ entry ->getName ();
You can’t perform that action at this time.
0 commit comments