File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -294,9 +294,9 @@ public static function getSdkVersion() : string
294
294
return file_get_contents ($ path );
295
295
}/*}}}*/
296
296
297
- public static function getDepsLocalPath () : ?string
297
+ public static function getDepsLocalPath (bool $ reset = false ) : ?string
298
298
{/*{{{*/
299
- if (NULL == self ::$ depsLocalPath ) {
299
+ if (NULL == self ::$ depsLocalPath || $ reset ) {
300
300
if (file_exists ("Makefile " )) {
301
301
$ s = file_get_contents ("Makefile " );
302
302
@@ -308,13 +308,13 @@ public static function getDepsLocalPath() : ?string
308
308
}
309
309
}
310
310
311
- if (NULL == self ::$ depsLocalPath ) {
311
+ if (NULL == self ::$ depsLocalPath || $ reset ) {
312
312
if (file_exists ("../deps " )) {
313
313
self ::setDepsLocalPath (realpath ("../deps " ));
314
314
}
315
315
}
316
316
317
- if (NULL == self ::$ depsLocalPath ) {
317
+ if (NULL == self ::$ depsLocalPath || $ reset ) {
318
318
if (file_exists ("main/php_version.h " )) {
319
319
/* Deps dir might not exist. */
320
320
self ::setDepsLocalPath (realpath (".. " ) . DIRECTORY_SEPARATOR . "deps " );
You can’t perform that action at this time.
0 commit comments