WPIntell

Source evidence

Can you solve this Parse error for Package.php?

WPD Beaver Builder Additions · support · 2018-10-05T14:55:00+00:00

complaintsentiment
mediumseverity
0.87relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
meridianacu unresolved
Can anyone help me solve this Parse error?? Or provide me with the correct code that I can upload? Parse error: syntax error, unexpected ‘[‘ in /public_html/wp-content/plugins/wpd-bb-additions/vendor/smarterdigital/wpd-toolset/package/src/Package.php on line 10 See coding below: <?php namespace WPD\Toolset; class Package { /** * @var array */ protected static $config = [‘plugin_text_domain’ => ‘wpd-toolset’]; /** * @param array $config */ public function __construct(array $config = []) { $this->setConfig($config); $this->setup(); } /** * @param array $config */ protected function setup(array $config = []) { } /** * */ public function getConfig() { return (object) self::$config; } /** * @param array $config */ protected function setConfig(array $config = []) { $default = (array) self::$config; self::$config = (object) array_merge($default, $config); } /** * Magic method to check the loaded object property status. * * @param string $key * * @return bool */ // public function __isset($key) // { // if (null === $this->__get($key)) { // return false; // } // // return true; // } /** * Magic method to get the loaded object property. * * @param string $prop * * @return mixed */ // public function __get($prop) // { // if ($prop === ‘config’) { // if (isset(self::$prop) && is_array(self::$prop)) { // return (object) self::$prop; // } // // return self::$prop; // } // // return null; // } /** * Temporary downgrade * * @return string */ public static function get_class() { return __CLASS__; } }

Comments

0 shown

No comments were stored for this source.