За последние 24 часа нас посетил 22821 программист и 1271 робот. Сейчас ищут 748 программистов ...

Нужна помощь ! ErrorException

Тема в разделе "Прочие вопросы по PHP", создана пользователем lvsfive, 9 дек 2020.

  1. lvsfive

    lvsfive Новичок

    С нами с:
    9 дек 2020
    Сообщения:
    1
    Симпатии:
    0
    PHP:
    1. /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
    2.             $this->files->getRequire($this->manifestPath) : [];
    3.     }
    4.     /**
    5.      * Build the manifest and write it to disk.
    6.      *
    7.      * @return void
    8.      */
    9.     public function build()
    10.     {
    11.         $packages = [];
    12.         if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
    13.             $packages = json_decode($this->files->get($path), true);
    14.         }
    15.         $ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());
    16.         $this->write(collect($packages)->mapWithKeys(function ($package) {
    17.             return [$this->format($package['name']) => $package['extra']['laravel'] ?? []];
    18.         })->each(function ($configuration) use (&$ignore) {
    19.             $ignore = array_merge($ignore, $configuration['dont-discover'] ?? []);
    20.         })->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {
    21.             return $ignoreAll || in_array($package, $ignore);
    22.         })->filter()->all());
    23.     }
    24.     /**
    25.      * Format the given package name.
    26.      *
    27.      * @param  string  $package
    28.      * @return string
    29.      */
    30.     protected function format($package)
    31.     {
    32.         return str_replace($this->vendorPath.'/', '', $package);
    33.     }
    34.     /**
    35.  
    ошибка
    ErrorException (E_NOTICE)
    Undefined index: name
    upload_2020-12-10_1-35-3.png
     
  2. Sail

    Sail Старожил

    С нами с:
    1 ноя 2016
    Сообщения:
    1.591
    Симпатии:
    360
    @lvsfive, загляните в табличку и ознакомьтесь с рекомендациями: Undefined index: name errors using Composer 2.01 for updating Laravel 6 · Issue #9340 · composer/composer · GitHub.
    Там-же ссылочка на испавление в исходниках (если захочется узнать, что именно пофиксили).
    Running composer update laravel/framework should hopefully fix this, and not cause you other problems. If you can not update laravel then you're better off downgrading to Composer 1 using composer self-update --1.

    If you are using illuminate/foundation instead of laravel/framework, then make sure you composer update illuminate/foundation instead.
    PS: для картинок на этом форуме выделена специальная ветка.
     
  3. MouseZver

    MouseZver Суперстар

    С нами с:
    1 апр 2013
    Сообщения:
    7.752
    Симпатии:
    1.322
    Адрес:
    Лень
    key "name" not found