Skip to content

Commit

Permalink
Use src-namespace-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 26, 2021
1 parent 277a698 commit 6af5774
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ parameters:
paths:
- src
scanFiles:
- src/DevTools/ConsoleScript.php
- src/ConsoleScript.php
1 change: 1 addition & 0 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: DevTools
main: DevTools\DevTools
src-namespace-prefix: DevTools
version: 1.15.0+dev
api: [4.0.0]
load: STARTUP
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/DevTools/DevTools.php → src/DevTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function makePluginCommand(CommandSender $sender, array $args) : bool{
assert($metadata !== null);

if($description->getName() === "DevTools"){
$stub = sprintf(DEVTOOLS_REQUIRE_FILE_STUB, "src/DevTools/ConsoleScript.php");
$stub = sprintf(DEVTOOLS_REQUIRE_FILE_STUB, "src/ConsoleScript.php");
}else{
$stubMetadata = [];
foreach($metadata as $key => $value){
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion stub.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

require("src/DevTools/ConsoleScript.php");
require("src/ConsoleScript.php");

0 comments on commit 6af5774

Please sign in to comment.