barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14k stars 1.16k forks source link

Livewire related #1127

Open HUN-Julian opened 3 years ago

HUN-Julian commented 3 years ago

Versions:

Description:

Ide helper can generate the _ide_helper.php file, but one line is not in a good way. I need to modify the namespace Illuminate\View to Illuminate\Contracts\View. After that, everythings works fine. It contains some a Laravel Livewire related stuffs…

Steps To Reproduce:

That is wrong: ... namespace Illuminate\View { ...

That is correct: ... namespace Illuminate\Contracts\View { ...

Whole together:


namespace Illuminate\Contracts\View {
    /**
     *
     *
     */
    class ComponentAttributeBag
    {
        /**
         *
         *
         * @see \Livewire\LivewireServiceProvider::registerViewMacros()
         * @param mixed $name
         * @static
         */
        public static function wire($name)
        {
            return \Illuminate\View\ComponentAttributeBag::wire($name);
        }
    }
    /**
     *
     *
     */
    class View
    {
        /**
         *
         *
         * @see \Livewire\Macros\ViewMacros::extends()
         * @param mixed $view
         * @param mixed $params
         * @static
         */
        function extends ($view, $params = []) {
            return \Illuminate\View\View:: extends ($view, $params);
        }
        /**
         *
         *
         * @see \Livewire\Macros\ViewMacros::layout()
         * @param mixed $view
         * @param mixed $params
         * @static
         */
        public static function layout($view, $params = [])
        {
            return \Illuminate\View\View::layout($view, $params);
        }
        /**
         *
         *
         * @see \Livewire\Macros\ViewMacros::section()
         * @param mixed $section
         * @static
         */
        public static function section($section)
        {
            return \Illuminate\View\View::section($section);
        }
        /**
         *
         *
         * @see \Livewire\Macros\ViewMacros::slot()
         * @param mixed $slot
         * @static
         */
        public static function slot($slot)
        {
            return \Illuminate\View\View::slot($slot);
        }
    }
}
sakurikii commented 3 years ago

This bug isn't fixed yet

rafayrty commented 1 year ago

Still not fixed