diff --git a/src/VersionCommand.php b/src/VersionCommand.php index 53fe755..c5540ad 100644 --- a/src/VersionCommand.php +++ b/src/VersionCommand.php @@ -1181,7 +1181,7 @@ private function run_composer_script( $script, $cwd, $output ) { return; } - if ( ! \property_exists( $script, $data->scripts ) ) { + if ( ! \property_exists( $data->scripts, $script ) ) { return; }