From 186d78cde397a3f4adbd600d61e5d4b85dbf7832 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 24 Oct 2024 11:38:38 +0200 Subject: [PATCH] Add php-ext to array dumper --- src/Composer/Package/Dumper/ArrayDumper.php | 1 + tests/Composer/Test/Package/Dumper/ArrayDumperTest.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Composer/Package/Dumper/ArrayDumper.php b/src/Composer/Package/Dumper/ArrayDumper.php index 046ba6674..9333bd9a0 100644 --- a/src/Composer/Package/Dumper/ArrayDumper.php +++ b/src/Composer/Package/Dumper/ArrayDumper.php @@ -37,6 +37,7 @@ class ArrayDumper 'devAutoload' => 'autoload-dev', 'notificationUrl' => 'notification-url', 'includePaths' => 'include-path', + 'phpExt' => 'php-ext', ]; $data = []; diff --git a/tests/Composer/Test/Package/Dumper/ArrayDumperTest.php b/tests/Composer/Test/Package/Dumper/ArrayDumperTest.php index 95a638820..253b3253b 100644 --- a/tests/Composer/Test/Package/Dumper/ArrayDumperTest.php +++ b/tests/Composer/Test/Package/Dumper/ArrayDumperTest.php @@ -234,6 +234,11 @@ class ArrayDumperTest extends TestCase ['ssl' => ['local_cert' => '/opt/certs/test.pem']], 'transportOptions', ], + [ + 'php-ext', + ['extension-name' => 'test'], + 'phpExt', + ], ]; } }