Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Aug 15, 2023
1 parent 035d7f2 commit 06b2996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ parameters:

ignoreErrors:
- "#Unsafe usage of new static\\(\\)#"
- "#Class Illuminate\\\\Foundation\\\\Application not found.#"
- "#Class Laravel\\\\Lumen\\\\Application not found.#"
4 changes: 2 additions & 2 deletions src/TinkerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class TinkerServiceProvider extends ServiceProvider implements DeferrableProvide
public function boot()
{
$source = realpath($raw = __DIR__.'/../config/tinker.php') ?: $raw;

if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
$this->publishes([$source => config_path('tinker.php')]);
$this->publishes([$source => $this->app->configPath('tinker.php')]);
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('tinker');
}
Expand Down

0 comments on commit 06b2996

Please sign in to comment.