On dev interface fixes PHP Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
This commit is contained in:
parent
cea6ba7dac
commit
d32cd3605e
|
@ -36,7 +36,8 @@ class DevInterface {
|
|||
$repositories = [$Tainacan_Collections, $Tainacan_Filters, $Tainacan_Logs, $Tainacan_Fields, $Tainacan_Taxonomies];
|
||||
|
||||
foreach ($repositories as $repo) {
|
||||
$cpt = $repo->entities_type::get_post_type();
|
||||
$tnc_entity = new $repo->entities_type();
|
||||
$cpt = $tnc_entity::get_post_type();
|
||||
$this->repositories[$cpt] = $repo;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue