Skip to content

Commit db2363a

Browse files
authored
PHP8.2 fixes, fix dynamic property creation (hestiacp#3258)
as of PHP8.2, dynamic property creation is no longer allowed by default (with the exception of StdClass), and triggers E_DEPRECATED, ref https://wiki.php.net/rfc/deprecate_dynamic_properties violations were detected with PHP-Rector using CompleteDynamicPropertiesRector ( https://github.com/rectorphp/rector/blob/main/rules/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector.php )
1 parent cd30ed3 commit db2363a

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

install/deb/filemanager/filegator/backend/Services/Archiver/Adapters/HestiaZipArchiver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use function Hestiacp\quoteshellarg\quoteshellarg;
1111

1212
class HestiaZipArchiver extends ZipArchiver implements Service, ArchiverInterface {
13+
public TmpfsInterface $tmpfs;
1314
protected $container;
1415

1516
public function __construct(TmpfsInterface $tmpfs, Container $container) {

install/deb/phpmyadmin/hestia-sso.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
define("API_KEY", "%API_KEY%");
1111

1212
class Hestia_API {
13+
/** @var string */
14+
public $hostname;
15+
/** @var string */
16+
public $key;
17+
/** @var string */
18+
public $pma_key;
19+
/** @var string */
1320
private $api_url;
1421
public function __construct() {
1522
$this->hostname = "https://" . API_HOST_NAME . ":" . API_HESTIA_PORT . "/api/";

web/src/app/System/HestiaApp.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
use function Hestiacp\quoteshellarg\quoteshellarg;
77

88
class HestiaApp {
9+
/** @var string[] */
10+
public $errors;
911
protected const TMPDIR_DOWNLOADS = "/tmp/hestia-webapp";
1012
protected $phpsupport = false;
1113

web/src/app/WebApp/Installers/BaseSetup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use Hestia\WebApp\Installers\Resources\WpResource;
1212

1313
abstract class BaseSetup implements InstallerInterface {
14+
public $appInfo;
15+
public $config;
1416
protected $domain;
1517
protected $extractsubdir;
1618
protected $AppDirInstall;

0 commit comments

Comments
 (0)