Git Product home page Git Product logo

Comments (4)

staabm avatar staabm commented on June 12, 2024

you are right.. capitel letter are the source of all evil ;-).

bug is here:

if (preg_match_all('{:[a-z]+}', $queryString, $matches) > 0) {

which chars are allowed in placeholder-names?

from phpstan-dba.

staabm avatar staabm commented on June 12, 2024

to go around Doctrine DBAL for now

btw .. doctrine dbal support should be possible, see #94

not on my priority list, but would be really cool to have.

from phpstan-dba.

Seldaek avatar Seldaek commented on June 12, 2024

Yeah I subscribed to that. I won't have time to implement that I believe, too involved for my phpstan-skills :) But definitely would be cool, as it's a fairly thin wrapper around PDO/PDOStatement, and it's the most useful doctrine integration IMO as query-builder stuff often returns real entities/objects (at least in my usage, YMMV), which is already easy to type correctly, and has less chances of mistakes in queries.

from phpstan-dba.

staabm avatar staabm commented on June 12, 2024

has less chances of mistakes in queries.

one plus of phpstan-dba I learned in hindsight is, that it checks your query against your real schema in the db.
this means e.g. that you also have kind-of-coverage for your database migrations, since the analysis starts to fail, if you forget to commit your migration recipe.

from phpstan-dba.

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.