mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
Fix php8.2 deprecated warning when using bridge specific configurations (#3587)
* Fix php8.2 deprecated warning Fix php8.2 warning: `Deprecated: Creation of dynamic property is deprecated` * fix * refactor: remove unused method --------- Co-authored-by: Dag <me@dvikan.no>
This commit is contained in:
parent
8e2353ad3e
commit
10f7b6f4f6
@ -58,8 +58,6 @@ abstract class BridgeAbstract implements BridgeInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration for the bridge
|
* Configuration for the bridge
|
||||||
*
|
|
||||||
* Use {@see BridgeAbstract::getConfiguration()} to read this parameter
|
|
||||||
*/
|
*/
|
||||||
const CONFIGURATION = [];
|
const CONFIGURATION = [];
|
||||||
|
|
||||||
@ -113,6 +111,11 @@ abstract class BridgeAbstract implements BridgeInterface
|
|||||||
*/
|
*/
|
||||||
protected $queriedContext = '';
|
protected $queriedContext = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds the list of bridge-specific configurations from config.ini.php, used by the bridge.
|
||||||
|
*/
|
||||||
|
private array $configuration = [];
|
||||||
|
|
||||||
/** {@inheritdoc} */
|
/** {@inheritdoc} */
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
@ -365,12 +368,6 @@ abstract class BridgeAbstract implements BridgeInterface
|
|||||||
return static::URI . '/favicon.ico';
|
return static::URI . '/favicon.ico';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritdoc} */
|
|
||||||
public function getConfiguration()
|
|
||||||
{
|
|
||||||
return static::CONFIGURATION;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** {@inheritdoc} */
|
/** {@inheritdoc} */
|
||||||
public function getParameters()
|
public function getParameters()
|
||||||
{
|
{
|
||||||
|
@ -60,11 +60,6 @@ interface BridgeInterface
|
|||||||
*/
|
*/
|
||||||
public function collectData();
|
public function collectData();
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the user's supplied configuration for the bridge
|
|
||||||
*/
|
|
||||||
public function getConfiguration();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the value for the selected configuration
|
* Returns the value for the selected configuration
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user