mirror of
https://github.com/flarum/core.git
synced 2025-05-05 15:07:17 +02:00
Override static property
@franzliedke I didn’t realise that static properties are static to the class they are defined on, and not each individual subclass. All of the static members of the SerializeAction class (which are intended for extensions to alter per-action) are being inherited by all actions. Any ideas on how to work around this other than defining every static member on each individual subclass?
This commit is contained in:
parent
4b4ff1e7fd
commit
d1e7453ffd
@ -29,6 +29,8 @@ class ShowAction extends SerializeResourceAction
|
||||
'groups' => true
|
||||
];
|
||||
|
||||
public static $link = [];
|
||||
|
||||
/**
|
||||
* Instantiate the action.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user