We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b129ae commit 605e3cdCopy full SHA for 605e3cd
src/Providers/BinaryUuidServiceProvider.php
@@ -63,14 +63,9 @@ private function shouldPublishConfig(): bool
63
return false;
64
}
65
66
- if (!method_exists($this->app, 'runningInConsole')) {
67
- return false;
68
- }
69
-
70
- if (!method_exists($this->app, 'configPath')) {
71
72
+ $hasMethods = method_exists($this->app, 'runningInConsole')
+ && method_exists($this->app, 'configPath');
73
74
- return $this->app->runningInConsole();
+ return $hasMethods && $this->app->runningInConsole();
75
76
0 commit comments