mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Opt into dynamic properties for PHP 8.2
This commit is contained in:
parent
e421569aff
commit
85b1d375a2
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Database {
|
||||
public static $TRUE = "1", $FALSE = "0";
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Header {
|
||||
/**
|
||||
* @param $page Page
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
require_once './inc/init.php';
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Page {
|
||||
public function __construct($name, $header = true, $connect = true) {
|
||||
$this->time = microtime(true);
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Settings {
|
||||
public function __construct() {
|
||||
// Web interface language. Languages are stored in the "lang/" directory.
|
||||
|
1
info.php
1
info.php
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
require_once './inc/page.php';
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
abstract class Info {
|
||||
/**
|
||||
* @param $row PDO::PDORow
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class cs_CZ {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class da_DK {
|
||||
public function __construct() {
|
||||
$this->version = 0;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class de_DE {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class en_US {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class es_ES {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class fr_FR {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class hu_HU {
|
||||
public function __construct() {
|
||||
$this->version = 1;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class it_IT {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class ja_JP {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class nb_NO {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class nl_NL {
|
||||
public function __construct() {
|
||||
$this->version = 0;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class pl_PL {
|
||||
public function __construct() {
|
||||
$this->version = 1;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class pt_PT {
|
||||
public function __construct() {
|
||||
$this->version = 1;
|
||||
|
@ -4,6 +4,7 @@
|
||||
// Поправил CXMorgan
|
||||
// Corrected by CXMorgan
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class ru_RU {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class sk_SK {
|
||||
public function __construct() {
|
||||
$this->version = 1;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class tr_TR {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class zh_CN {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class zh_HK {
|
||||
public function __construct() {
|
||||
$this->version = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user