Skip to content

Commit

Permalink
PHP 8.2 declare all class vars explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt authored Jul 13, 2023
1 parent 223303e commit 8affa2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion magnustools/public_html/php/oauth.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?PHP

class MW_OAuth {

var $use_tag_parameter = true ;
Expand All @@ -21,6 +20,14 @@ class MW_OAuth {
var $delay_after_edit_s = 1 ;
var $delay_after_upload_s = 1 ;
var $cookie_best_before = 60*60*24*30*3 ;# expires in three months
// PHP 8.2 deprecated AllowDynamicProperties
var $apiUrl; //maybe private?
var $gUserAgent;
var $gConsumerKey;
var $gConsumerSecret;
var $gTokenKey;
var $gTokenSecret;


function __construct ( $t , $l = '' , $p = '' , $oauth_url = '' ) {
if ( is_array($t) ) { // Bespoke override for third-party sites
Expand Down

0 comments on commit 8affa2c

Please sign in to comment.