Skip to content

Commit

Permalink
[2.x] Remove unused orchestra/testbench deps (#166)
Browse files Browse the repository at this point in the history
* [2.x] Remove unused `orchestra/testbench` deps

This opens up the opportunity to require and run `tinker` directly from a package using `orchestra/testbench`.

```bash
php vendor/bin/testbench package:discover
php vendor/bin/testbench tinker
```

* wip

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
crynobone and StyleCIBot committed Aug 15, 2023
1 parent 5d5ae2b commit b936d41
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"require-dev": {
"mockery/mockery": "~1.3.3|^1.4.2",
"orchestra/testbench": "^4.0|^5.0|^6.0|^6.0|^7.0|^8.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^8.5.8|^9.3.3"
},
Expand Down
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.#"
2 changes: 1 addition & 1 deletion src/TinkerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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 b936d41

Please sign in to comment.