$this->requirements['com.woltlab.wcf'] = ['name' => 'com.woltlab.wcf'];
}
- if ($this->package != null) {
+ // during installations, `Package::$packageVersion` can be `null` which causes issues
+ // in `PackageArchive::filterUpdateInstructions()`; as update instructions are not needed
+ // for installations, not filtering update instructions is okay
+ if ($this->package !== null && $this->package->packageVersion !== null) {
$this->filterUpdateInstructions();
}