Giter Site home page Giter Site logo

Comments (7)

kbond avatar kbond commented on July 20, 2024

Looks like a bug to me. Either we need to change the catch logic or or pass the name to the method. I don't know the context of this logic off the top of my head. @sneakyvv?

from ux.

smnandre avatar smnandre commented on July 20, 2024

Same thing @kbond :)

I'd code that, but i have no idea how to test that correctly, with LiveComponents, ...

    $compiler->write('$this->extensions[')
        ->string(ComponentExtension::class)
        ->raw(']->finishEmbeddedComponentRender(')
        ->string($this->getAttribute('component'))
        ->string(')')
        ->raw(";\n")
    ;

from ux.

kbond avatar kbond commented on July 20, 2024

Did you hit this try...catch and get an \ArgumentCountError thrown?

from ux.

smnandre avatar smnandre commented on July 20, 2024

Hmm where ? Around this one or in throwRuntimeError ? Sorry i'm not sure how to handle that.. :|

from ux.

kbond avatar kbond commented on July 20, 2024

I'm just wondering how you stumbled upon this bug. Just by looking at code or did an app actually run this and throw an exception.

(I'm trying to gauge how important it is to require the name here - can we just remove the try catch and let the caught exception be thrown as normal?)

from ux.

smnandre avatar smnandre commented on July 20, 2024

Reading code, and PhpStorm alerted me with some red wavy line :)

from ux.

smnandre avatar smnandre commented on July 20, 2024

I have to leave, i can try your solution in a couple of hours

from ux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.