phpstan-doctrine
phpstan-doctrine copied to clipboard
Doctrine extensions for PHPStan
Package versions: ``` doctrine/orm 2.13.1 phpstan/phpstan 1.8.2 phpstan/phpstan-deprecation-rules 1.0.0 phpstan/phpstan-doctrine 1.3.12 phpstan/phpstan-nette 1.0.0 phpstan/phpstan-strict-rules 1.3.0 ``` version `doctrine/orm 2.12.3 ` was OK. I write code like this https://www.doctrine-project.org/projects/doctrine-orm/en/2.13/cookbook/sql-table-prefixes.html#sql-table-prefixes . Code:...
I'm not sure if it's a false positive or not, But I didn't know what to put in the title 😄 But I have this Interface ```php
Hello I'm having a hard time figuring out if I need a custom type descriptor 🤔 My custom type is: https://github.com/assoconnect/doctrine-types-bundle/blob/master/src/Doctrine/DBAL/Types/EmailType.php It extends Doctrine base String type so I guess:...
I'm still running into the https://github.com/phpstan/phpstan-doctrine/issues/266 issue, which I thought should be fixed with: https://github.com/phpstan/phpstan-doctrine/commit/149cf71c3b470f815ad8ad658606e9217db22d9f But in my cases it ends still in `mixed` state. I created a reproducer here:...
# Bug report Run into PHPStan internal error when tried new feature of Doctrine - use native PHP enum as a entity database value (new in version 2.11 https://www.doctrine-project.org/2022/01/11/orm-2.11.html). How...
Not complete. The tests that use a non-`literal-string` for parameters 2 and 3, incorrectly return a `literal-string`. --- These tests should work ([results](https://phpstan.org/r/5b70ac59-4e91-4dd5-ac7d-b63eec30cef8)). I suspect the original function definition, which...
I am not sure if this is a problem with phpstan itself, or this repo. This throws no error: ``` /** @return Users[] **/ public function findCustom(string $type, string): array...
I'm always getting trailing comma errors when submitting PRs on phpstan-doctrine because of the PHP 7.2 support. It would help a lot if `make cs` would detect these problems. This...
We have an old legacy project where we use sql first approach to define the tables and then create the entities for them. I'm wondering if phpstan can help us...