PHP.SU

Программирование на PHP, MySQL и другие веб-технологии
PHP.SU Портал     На главную страницу форума Главная     Помощь Помощь     Поиск Поиск     Поиск Яндекс Поиск Яндекс     Вакансии  Пользователи Пользователи

Страниц (1): [1]

> Найдено сообщений: 1
zorg926 Отправлено: 18 Декабря, 2017 - 02:48:13 • Тема: Parse error: syntax error, unexpected '[', expecting ')' • Форум: Вопросы новичков

Ответов: 2
Просмотров: 533
Перестал грузиться сайт с данной ошибкой Parse error: syntax error, unexpected '[', expecting ')' in /plugins/system/regularlabs/vend or/composer/autoload_real.php on line 24

Не могу найти в чем проблема

PHP:
скопировать код в буфер обмена
  1. <?PHP
  2.  
  3. // autoload_real.php @generated by Composer
  4.  
  5. class ComposerAutoloaderInit024eacf405310863b3206effceefe496
  6. {
  7.         private static $loader;
  8.  
  9.         public static function loadClassLoader($class)
  10.         {
  11.                 if ('Composer\Autoload\ClassLoader' === $class)
  12.                 {
  13.                         require __DIR__ . '/ClassLoader.php';
  14.                 }
  15.         }
  16.  
  17.         public static function getLoader()
  18.         {
  19.                 if (null !== self::$loader)
  20.                 {
  21.                         return self::$loader;
  22.                 }
  23.  
  24.                 spl_autoload_register(['ComposerAutoloaderInit024eacf405310863b3206effceefe496', 'loadClassLoader'], true, true);
  25.                 self::$loader = $loader = new \Composer\Autoload\ClassLoader;
  26.                 spl_autoload_unregister(['ComposerAutoloaderInit024eacf405310863b3206effceefe496', 'loadClassLoader']);
  27.  
  28.                 $useStaticLoader = PHP_VERSION_ID >= 50600 && ! defined('HHVM_VERSION') && ( ! function_exists('zend_loader_file_encoded') || ! zend_loader_file_encoded());
  29.                 if ($useStaticLoader)
  30.                 {
  31.                         require_once __DIR__ . '/autoload_static.php';
  32.  
  33.                         call_user_func(\Composer\Autoload\ComposerStaticInit024eacf405310863b3206effceefe496::getInitializer($loader));
  34.                 }
  35.                 else
  36.                 {
  37.                         $map = require __DIR__ . '/autoload_namespaces.php';
  38.                         foreach ($map as $namespace => $path)
  39.                         {
  40.                                 $loader->set($namespace, $path);
  41.                         }
  42.  
  43.                         $map = require __DIR__ . '/autoload_psr4.php';
  44.                         foreach ($map as $namespace => $path)
  45.                         {
  46.                                 $loader->setPsr4($namespace, $path);
  47.                         }
  48.  
  49.                         $classMap = require __DIR__ . '/autoload_classmap.php';
  50.                         if ($classMap)
  51.                         {
  52.                                 $loader->addClassMap($classMap);
  53.                         }
  54.                 }
  55.  
  56.                 $loader->register(true);
  57.  
  58.                 return $loader;
  59.         }
  60. }

Страниц (1): [1]
Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB