Skip to content

Commit

Permalink
Merge pull request #18 from tobbexiv/patch-get-preserve-paths
Browse files Browse the repository at this point in the history
Fix access to undefined index preserve-paths
  • Loading branch information
derhasi authored Jul 10, 2017
2 parents d557250 + ed8aea0 commit daa7b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PluginWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ protected function getPreservePaths()
$extra = $this->composer->getPackage()->getExtra();

if (!isset($extra['preserve-paths'])) {
$paths = $extra['preserve-paths'];
$paths = array();
} elseif (!is_array($extra['preserve-paths']) && !is_object($extra['preserve-paths'])) {
$paths = array($extra['preserve-paths']);
} else {
Expand Down

0 comments on commit daa7b35

Please sign in to comment.