Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/264' into develop
Browse files Browse the repository at this point in the history
Forward port #264
  • Loading branch information
geerteltink committed Oct 25, 2018
2 parents 54b7b6b + 8083d08 commit bda3c59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ All notable changes to this project will be documented in this file, in reverse

- Nothing.

## 3.2.1 - TBD
## 3.2.1 - 2018-10-25

### Added

Expand All @@ -44,7 +44,7 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#264](https://github.com/zendframework/zend-expressive-skeleton/pull/264) removes phpstan leftovers.

## 3.2.0 - 2018-09-27

Expand Down
7 changes: 7 additions & 0 deletions src/ExpressiveInstaller/OptionalPackages.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,13 @@ public function removeInstallerFromDefinition() : void
// Remove installer scripts
unset($this->composerDefinition['scripts']['pre-update-cmd']);
unset($this->composerDefinition['scripts']['pre-install-cmd']);

// Remove phpstan completely
$this->composerDefinition['scripts']['check'] = array_diff(
$this->composerDefinition['scripts']['check'],
['@analyze']
);
unset($this->composerDefinition['scripts']['analyze']);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions test/ExpressiveInstallerTest/RemoveInstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ public function testInstallerIsRemoved()
$this->assertFalse(isset($composer['extra']['optional-packages']));
$this->assertFalse(isset($composer['scripts']['pre-install-cmd']));
$this->assertFalse(isset($composer['scripts']['pre-update-cmd']));
$this->assertFalse(isset($composer['scripts']['check']['@analyze']));
$this->assertFalse(isset($composer['scripts']['analyze']));
}
}

0 comments on commit bda3c59

Please sign in to comment.