Skip to content

Commit 270154b

Browse files
committed
PHPStan fix
1 parent 1da8ce9 commit 270154b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ScaffoldPackageCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use WP_CLI;
66
use WP_CLI\Utils;
7+
use WP_CLI\Path;
78

89
/**
910
* @phpstan-type ComposerConfig array{name: string, description: string, extra: array{readme: array{shields: array<string>}, commands: array<string>}, require: array<string, string>, 'require-dev': array<string, string>}
@@ -351,7 +352,7 @@ public function package_readme( $args, $assoc_args ) {
351352
foreach ( $GLOBALS['argv'] as &$arg ) {
352353
if ( 0 === strpos( $arg, '--require=' ) ) {
353354
$req_path = substr( $arg, 10 );
354-
if ( ! \WP_CLI\Utils\is_path_absolute( $req_path ) ) {
355+
if ( ! Path::is_absolute( $req_path ) ) {
355356
$arg = '--require=' . $cwd . '/' . $req_path;
356357
}
357358
}

0 commit comments

Comments
 (0)