Files
FreshRSS/app/Exceptions/ZipException.php
Alexandre Alapetite 06d0099504 Require PHP 7.4+ (#5720)
* Require PHP 7.4+
https://github.com/FreshRSS/FreshRSS/discussions/5474

* Update Docker oldest
Alpine 3.13 with PHP 7.4.26

* Add missing packets to Docker oldest

* Update to typed properties
https://php.net/migration74.new-features#migration74.new-features.core.typed-properties

* More types
2023-10-30 20:47:27 +01:00

16 lines
300 B
PHP

<?php
class FreshRSS_Zip_Exception extends Exception {
private int $zipErrorCode = 0;
public function __construct(int $zipErrorCode) {
parent::__construct('ZIP error!', 2141);
$this->zipErrorCode = $zipErrorCode;
}
public function zipErrorCode(): int {
return $this->zipErrorCode;
}
}