On dev interface fixes PHP Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)

This commit is contained in:
weryques 2018-06-06 12:25:38 -03:00
parent cea6ba7dac
commit d32cd3605e
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}