File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ private function findFiles($dir): array
148
148
$ iterator = new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($ dir ));
149
149
foreach ($ iterator as $ file ) {
150
150
if (fnmatch (static ::PATTERN , $ file ->getFilename ()) &&
151
- (isset ($ this ->args ['path ' ]) || strpos ($ file ->getPathname (), "vendor/ " ) === false )) {
151
+ (isset ($ this ->args ['path ' ]) || ! str_contains ($ file ->getPathname (), "vendor/ " ))) {
152
152
$ files [] = $ file ->getPathname ();
153
153
}
154
154
}
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " >=8.0" ,
20
- "maplephp/dto" : " ^1.0 " ,
21
- "maplephp/http" : " ^1.0 " ,
22
- "maplephp/validate" : " ^1.0.0 " ,
23
- "maplephp/prompts" : " ^1.0 "
20
+ "maplephp/dto" : " * " ,
21
+ "maplephp/http" : " * " ,
22
+ "maplephp/validate" : " * " ,
23
+ "maplephp/prompts" : " * "
24
24
},
25
25
"autoload" : {
26
26
"psr-4" : {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use MaplePHP\Prompts\Command;
7
7
use MaplePHP \Unitary \Unit ;
8
8
9
9
if (!class_exists (Unit::class)) {
10
- $ dir = realpath (__DIR__ . "/../../../ " );
10
+ $ dir = realpath (__DIR__ . "/../../ " );
11
11
$ alFile = (defined ("UNITARY_AUTOLOAD_FILE " ) ? UNITARY_AUTOLOAD_FILE : "$ dir/autoload.php " );
12
12
if (is_file ($ alFile )) {
13
13
require_once ($ alFile );
You can’t perform that action at this time.
0 commit comments