Skip to content

Commit

Permalink
Fix dynamic properties' creation deprecated with PHP8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jul 16, 2023
1 parent 65e635c commit f2e6e12
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Event.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Event extends MysqlEntity{

protected $id,$title,$guid,$content,$description,$pudate,$link,$feed,$category,$creator,$unread,$favorite;
protected $id,$title,$guid,$content,$description,$pubdate,$link,$feed,$category,$creator,$unread,$favorite,$syncId;
protected $TABLE_NAME = 'event';
protected $object_fields =
array(
Expand Down
1 change: 1 addition & 0 deletions Install.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Install {
const DEFAULT_TABLES_PREFIX = 'leed__';
const CONSTANT_FILE = 'constant.php';
public $finished = false;
private $logger;
public $logs = array(
'errors' => array(),
'notices' => array()
Expand Down
4 changes: 4 additions & 0 deletions MysqlEntity.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
class MysqlEntity
{

protected $object_fields;
protected $TABLE_NAME;
protected $object_fields_index;
protected $object_fields_uniques;
protected $dbconnector = false;
private $debug = false;
private $debugAllQuery = false;
Expand Down
1 change: 1 addition & 0 deletions Opml.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

class Opml {

private $folders;
// liens déjà connus, déjà abonnés, au moment de l'importation
public $alreadyKnowns = array();

Expand Down
8 changes: 5 additions & 3 deletions i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ class Translation {
const DEFAULT_LANGUAGE = 'fr';

// tableau associatif des traductions
var $trans = array();
var $language = ''; // langue courante
var $translatedLanguages = array(); // langues traduites
private $trans = array();
public $languages = [];
public $language = ''; // langue courante
public $translatedLanguages = array(); // langues traduites
private $location = '';

/** @param location L'endroit où se trouve le dossier 'locale'
* @param languages Les langues demandées */
Expand Down

0 comments on commit f2e6e12

Please sign in to comment.