Code Monkey home page Code Monkey logo

Comments (11)

muglug avatar muglug commented on June 2, 2024 1

Fixed in vimeo/psalm@f096468

from airship.

muglug avatar muglug commented on June 2, 2024 1

You can do psalm --config=somefile.xml

from airship.

muglug avatar muglug commented on June 2, 2024

Relatedly, this curious chunk of code was flagged by latest Psalm dev-master.

from airship.

paragonie-scott avatar paragonie-scott commented on June 2, 2024

Oh, I should probably change null to []? (Composer still hasn't updated.)

from airship.

muglug avatar muglug commented on June 2, 2024

more the if (!\is_array($data)) { check on something that is definitely an array (because of the cast)

from airship.

paragonie-scott avatar paragonie-scott commented on June 2, 2024

Is there any chance we can just make the is_*() functions excluded from type errors?

from airship.

muglug avatar muglug commented on June 2, 2024

They should be excluded when the type comes from a docblock (as opposed to language-level check). I think the difference here is that the if is inside a loop, and I imagine I introduced a regression with vimeo/psalm#115. Will fix momentarily.

But still, how can that if statement ever be true?

from airship.

paragonie-scott avatar paragonie-scott commented on June 2, 2024

It can't ever be true; it's dead code. I'm removing it in a few seconds. :)

from airship.

paragonie-scott avatar paragonie-scott commented on June 2, 2024

Left to do before this can be closed (mostly meant as a note to myself so the next time I look through open issues for things to work on, I don't need to try to refresh my own memory):

  • Find out if Psalm can be coerced into specifying a different .xml file from its CLI arguments.
    • If yes, create a psalm.xml for each Cabin.
    • If no, rename the existing psalm.xml file and rapidly create/remove symlinks to make it behave. Also, create a psalm.sh script to facilitate this for non-Travis testing.

from airship.

paragonie-scott avatar paragonie-scott commented on June 2, 2024

Perfect! Thanks. :)

from airship.

muglug avatar muglug commented on June 2, 2024

If you're running --diff builds locally you'll need to specify different cache directories for them, but I think your codebase is small enough that --diff builds aren't necessary.

from airship.

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.