За последние 24 часа нас посетили 21565 программистов и 1023 робота. Сейчас ищут 730 программистов ...

как избавиться от этого?

Тема в разделе "Yii", создана пользователем jpc, 26 авг 2019.

  1. jpc

    jpc Зэк
    [ БАН ]

    С нами с:
    30 июн 2019
    Сообщения:
    128
    Симпатии:
    0
    Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/php.x/advanced/vendor/yiisoft/yii2/base/Object.php on line 77
     
  2. MouseZver

    MouseZver Суперстар

    С нами с:
    1 апр 2013
    Сообщения:
    7.752
    Симпатии:
    1.322
    Адрес:
    Лень
    2019-08-26_21-40-29.png
    --- Добавлено ---
    А вы уступаете инвалидам место в автобусе ?
    - Да б...., еще как уступаю! Бугагага...
     
    Dron-Boy нравится это.
  3. jpc

    jpc Зэк
    [ БАН ]

    С нами с:
    30 июн 2019
    Сообщения:
    128
    Симпатии:
    0
    я понимаю, что невозможно использовать этот объект
    Я просто сам юии скачал и вышла ошибка
    пытаюсь по видеокурсу учить
    --- Добавлено ---
    PHP:
    1. class Object implements Configurable
    2. {
    3.     /**
    4.      * Returns the fully qualified name of this class.
    5.      * @return string the fully qualified name of this class.
    6.      */
    7.     public static function className()
    8.     {
    9.         return get_called_class();
    10.     }
    11.  
    12.     /**
    13.      * Constructor.
    14.      * The default implementation does two things:
    15.      *
    16.      * - Initializes the object with the given configuration `$config`.
    17.      * - Call [[init()]].
    18.      *
    19.      * If this method is overridden in a child class, it is recommended that
    20.      *
    21.      * - the last parameter of the constructor is a configuration array, like `$config` here.
    22.      * - call the parent implementation at the end of the constructor.
    23.      *
    24.      * @param array $config name-value pairs that will be used to initialize the object properties
    25.      */
    26.     public function __construct($config = [])
    27.     {
    28.         if (!empty($config)) {
    29.             Yii::configure($this, $config);
    30.         }
    31.         $this->init();
    32.     }
    33.  
    34.     /**
    35.      * Initializes the object.
    36.      * This method is invoked at the end of the constructor after the object is initialized with the
    37.      * given configuration.
    38.      */
    39.     public function init()
    40.     {
    41.     }
    42.  
    43.     /**
    44.      * Returns the value of an object property.
    45.      *
    46.      * Do not call this method directly as it is a PHP magic method that
    47.      * will be implicitly called when executing `$value = $object->property;`.
    48.      * @param string $name the property name
    49.      * @return mixed the property value
    50.      * @throws UnknownPropertyException if the property is not defined
    51.      * @throws InvalidCallException if the property is write-only
    52.      * @see __set()
    53.      */
     
  4. yanuzay

    yanuzay Активный пользователь

    С нами с:
    28 мар 2018
    Сообщения:
    498
    Симпатии:
    57
    море ссылок в гугле и яндексе с этой ошибкой.
    проблема с версией yii или с версией php
     
  5. roswww

    roswww Активный пользователь

    С нами с:
    15 окт 2016
    Сообщения:
    154
    Симпатии:
    4
    Адрес:
    Cтаврополь
  6. mkramer

    mkramer Суперстар
    Команда форума Модератор

    С нами с:
    20 июн 2012
    Сообщения:
    8.555
    Симпатии:
    1.754
    откуда ты такую старую версию yii скачал, давно уже решена эта проблема
     
  7. jpc

    jpc Зэк
    [ БАН ]

    С нами с:
    30 июн 2019
    Сообщения:
    128
    Симпатии:
    0
    с видеокурсов
     
  8. mkramer

    mkramer Суперстар
    Команда форума Модератор

    С нами с:
    20 июн 2012
    Сообщения:
    8.555
    Симпатии:
    1.754
  9. jpc

    jpc Зэк
    [ БАН ]

    С нами с:
    30 июн 2019
    Сообщения:
    128
    Симпатии:
    0
    Я так обычно учу и может это мешает мне в понимании.
     
  10. artoodetoo

    artoodetoo Суперстар
    Команда форума Модератор

    С нами с:
    11 июн 2010
    Сообщения:
    11.076
    Симпатии:
    1.237
    Адрес:
    там-сям
    Не знаю что тебе мешает, но ты не учишь, а жалуешься.

    Что ты понял из этой темы, расскажи. Тебе дали всё, что надо. Ты справился с этой ошибкой?