Skip to content

Commit b936d41

Browse files
[2.x] Remove unused orchestra/testbench deps (#166)
* [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 <[email protected]>
1 parent 5d5ae2b commit b936d41

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
},
2020
"require-dev": {
2121
"mockery/mockery": "~1.3.3|^1.4.2",
22-
"orchestra/testbench": "^4.0|^5.0|^6.0|^6.0|^7.0|^8.0",
2322
"phpstan/phpstan": "^1.10",
2423
"phpunit/phpunit": "^8.5.8|^9.3.3"
2524
},

phpstan.neon.dist

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ parameters:
77

88
ignoreErrors:
99
- "#Unsafe usage of new static\\(\\)#"
10+
- "#Class Illuminate\\\\Foundation\\\\Application not found.#"
1011
- "#Class Laravel\\\\Lumen\\\\Application not found.#"

src/TinkerServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function boot()
2020
$source = realpath($raw = __DIR__.'/../config/tinker.php') ?: $raw;
2121

2222
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
23-
$this->publishes([$source => config_path('tinker.php')]);
23+
$this->publishes([$source => $this->app->configPath('tinker.php')]);
2424
} elseif ($this->app instanceof LumenApplication) {
2525
$this->app->configure('tinker');
2626
}

0 commit comments

Comments
 (0)