WsdlToPhp / PackageGenerator

Generates a PHP SDK based on a WSDL, simple and powerful, WSDL to PHP
https://providr.io
MIT License
425 stars 73 forks source link

Fixed a bug in composer.json when trying to override default options like required php version #305

Closed gugglegum closed 11 months ago

gugglegum commented 11 months ago

The content for composer.json is created by combining the default and optional settings. Previously, when trying to override the default setting, the new and old values were stored in a new array, which broke the composer structure. This is the standard behavior of array_merge_recursive(). A better alternative is to use array_replace_recursive(). It works the same way when merging different keys, but replaces the values of the existing keys.