Fatal error: Uncaught Error: Typed property models\PostClass::$id must not be accessed before initialization in /var/www/html/public/wp-content/themes/bestwh/inc/models/PostClass.php:94
Stack trace:
#0 /var/www/html/public/wp-content/themes/bestwh/inc/models/PostClass.php(206): models\PostClass->getID()
#1 /var/www/html/public/wp-content/themes/bestwh/inc/hooks/shortcodes/link.php(52): models\PostClass->getPermalink()
#2 /var/www/html/public/wp-includes/shortcodes.php(355): utils\Script::{closure}()
#3 [internal function]: do_shortcode_tag()
#4 /var/www/html/public/wp-includes/shortcodes.php(227): preg_replace_callback()
#5 /var/www/html/public/wp-includes/class-wp-hook.php(308): do_shortcode()
#6 /var/www/html/public/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#7 /var/www/html/public/wp-content/themes/bestwh/inc/models/PostClass.php(152): apply_filters()
#8 /var/www/html/public/wp-content/themes/bestwh/page-templates/controllers/single-post_old.php(47): models\PostClass->getContent()
#9 /var/www/html/public/wp-includes/template.php(785): require('...')
#10 /var/www/html/public/wp-includes/template.php(718): load_template()
#11 /var/www/html/public/wp-includes/general-template.php(204): locate_template()
#12 /var/www/html/public/wp-content/themes/bestwh/single.php(11): get_template_part()
#13 /var/www/html/public/wp-includes/template-loader.php(106): include('...')
#14 /var/www/html/public/wp-blog-header.php(19): require_once('...')
#15 /var/www/html/public/index.php(17): require('...')
#16 /var/www/html/public/cache-index.php(9): require('...')
#17 [internal function]: {closure}()
#18 /var/www/html/public/wp-content/themes/bestwh/inc/components/PageCache.php(58): call_user_func()
#19 /var/www/html/public/cache-index.php(10): components\PageCache::handle()
#20 {main}
thrown in /var/www/html/public/wp-content/themes/bestwh/inc/models/PostClass.php on line 94