Comments (4)
Finally fixed, right now works only with PhpStan master.
from orm-phpstan.
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.
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.
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)
- Persist() returns specific passed entity type HOT 1
- PHPStan 0.12 support? HOT 1
- Orm 4 support
- Broken with latest PHPStan HOT 1
- Mapper::toCollection() breaks PHPStan HOT 9
- Call to undefined method PHPStan\Type\UnionType::getClassName()
- repository::persist() and others return type of 1st passed arg
- parent in Repository
- phpstan cries with Nextras ORM 4 HOT 5
- Prepare for PHPStan 1.0
- Incompatible types: Expected property
- validate entity type for repository::persist() and others
- Mapper::toEntity() & toCollection() should return typed entities
- support datetime property-write string type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orm-phpstan.