protected static function runPackageScripts(string $staticMethodReference)
    {
        $className = substr($staticMethodReference, 0, strpos($staticMethodReference, '::'));
        $methodName = substr($staticMethodReference, strpos($staticMethodReference, '::') + 2);

        if (!class_exists($className)) {
            throw new Exception\InvalidConfigurationException('Class "' . $className . '" is not autoloadable, can not call "' . $staticMethodReference . '"', 1348751076);
        }
        if (!is_callable($staticMethodReference)) {
            throw new Exception\InvalidConfigurationException('Method "' . $staticMethodReference . '" is not callable', 1348751082);
        }
        $className::$methodName();
    }
protected static function runPackageScripts(string $staticMethodReference)
    {
        $className = substr($staticMethodReference, 0, strpos($staticMethodReference, '::'));
        $methodName = substr($staticMethodReference, strpos($staticMethodReference, '::') + 2);

        if (!class_exists($className)) {
            throw new Exception\InvalidConfigurationException('Class "' . $className . '" is not autoloadable, can not call "' . $staticMethodReference . '"', 1348751076);
        }
        if (!is_callable($staticMethodReference)) {
            throw new Exception\InvalidConfigurationException('Method "' . $staticMethodReference . '" is not callable', 1348751082);
        }
        $className::$methodName();
    }
protected static function runPackageScripts ( string $ staticMethodReference ) { $ className = substr ( $ staticMethodReference , 0 , strpos ( $ staticMethodReference , '::' ) ) ; $ methodName = substr ( $ staticMethodReference , strpos ( $ staticMethodReference , '::' ) + 2 ) ; if ( ! class_exists ( $ className ) ) { throw new Exception \ InvalidConfigurationException ( 'Class "' . $ className . '" is not autoloadable, can not call "' . $ staticMethodReference . '"' , 1348751076 ) ; } if ( ! is_callable ( $ staticMethodReference ) ) { throw new Exception \ InvalidConfigurationException ( 'Method "' . $ staticMethodReference . '" is not callable' , 1348751082 ) ; } $ className :: $ methodName ( ) ; }
Calls a static method from it's string representation

@param string $staticMethodReference
@return void
@throws Exception\InvalidConfigurationException
Calls a static method from it s string representation