The filtering of update instructions is a massive design mistake is now
effectively removed. The method is renamed, because the behavior changed quite
a bit. Better fail obviously than silently returning garbage.
Fixes #5094
],
];
- foreach ($packageArchive->getUpdateInstructions() as $fromVersion => $updateInstructions) {
+ foreach ($packageArchive->getAllUpdateInstructions() as $fromVersion => $updateInstructions) {
$versionUpdateInstructions = [];
foreach ($updateInstructions as $instruction) {
*
* @return array
*/
- public function getUpdateInstructions()
+ public function getAllUpdateInstructions()
{
- if ($this->package !== null && $this->package->packageVersion !== null) {
- $this->filterUpdateInstructions();
- }
-
return $this->instructions['update'];
}
private function getUpdateInstructions(): array
{
- $updateInstructions = $this->archive->getUpdateInstructions();
+ $updateInstructions = $this->archive->getAllUpdateInstructions();
\ksort($updateInstructions);
return \array_map($this->cleanInstructions(...), $updateInstructions);