Skip to content
Snippets Groups Projects
Commit 04fecfdc authored by Lucas Hedding's avatar Lucas Hedding Committed by Florent Torregrosa
Browse files

Issue #3382718 by heddn, Grimreaper, pdureau: PHP 8.2: Dynamic Properties are deprecated

parent 86fc337f
Branches
Tags 8.x-1.8
1 merge request!58fix dynamic variables
Pipeline #85936 passed with warnings
......@@ -19,13 +19,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/
class LibraryDeriver extends AbstractYamlPatternsDeriver {
/**
* The base plugin ID.
*
* @var string
*/
protected $basePluginId;
/**
* The app root.
*
......
......@@ -34,10 +34,17 @@ abstract class AbstractPatternsDeriver extends DeriverBase implements PatternsDe
*/
protected $messenger;
/**
* The base plugin ID.
*
* @var string
*/
protected string $basePluginId;
/**
* AbstractPatternsDeriver constructor.
*/
public function __construct($base_plugin_id, TypedDataManager $typed_data_manager, MessengerInterface $messenger) {
public function __construct(string $base_plugin_id, TypedDataManager $typed_data_manager, MessengerInterface $messenger) {
$this->basePluginId = $base_plugin_id;
$this->typedDataManager = $typed_data_manager;
$this->messenger = $messenger;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment