GithubHelp home page GithubHelp logo

Comments (4)

hrach avatar hrach commented on July 28, 2024 2

Finally fixed, right now works only with PhpStan master.

from orm-phpstan.

hrach avatar hrach commented on July 28, 2024
Hi, to fix this I would need an actual reproduction. This seems like not properly initialized relationship container. This behaviour is currently [covered](https://github.com/nextras/orm/blob/3cddad369e8df740525e95b1d7a20b5de44a5fee/tests/cases/integration/Relationships/relationships.manyHasOne.phpt#L74) by tests, so there will be some mistake.

I'm missed the most important thing this is reported on phpstan extension repo... 🤕 . Ok, sorry.

This is known limitation and I'm working on a fix. The fix require some changes in PhpStan, which I hope are quite near mering

from orm-phpstan.

hrach avatar hrach commented on July 28, 2024

In my projects I currently ignore this errors by

- '#Property [\w\\]+::\$\w+ \([\w|\\]+\) does not accept int\.#'
- '#Property [\w\\]+::\$\w+ \([\w|\\]+\) does not accept int|null\.#'

Be aware they are not super-save.

from orm-phpstan.

vasekbrychta avatar vasekbrychta commented on July 28, 2024

Ok, that's great! Thanks for the workaround. I might add the common namespace prefix for all my Entities to be more safe for now.

from orm-phpstan.

Related Issues (15)

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.