From 40c4164d079d8115e2aefea5bd9c9745ecdafa7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Thu, 29 Dec 2022 16:44:25 +0100 Subject: [PATCH] Fix "PHP Fatal error: Uncaught TypeError: property_exists(): Argument #2 ($property) must be of type string, stdClass given". --- src/VersionCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }