-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove baseline #3955
Remove baseline #3955
Conversation
greg0ire
commented
Apr 15, 2020
•
edited by morozov
Loading
edited by morozov
Q | A |
---|---|
Type | improvement |
BC Break | no |
Fixed issues | n / a |
@morozov not sure why this is ignored: Lines 48 to 49 in 72d9081
AFAIK, Collection is still using the old dbal/lib/Doctrine/DBAL/Tools/Dumper.php Line 89 in 72d9081
IMO we should add |
Also, I can't seem to be able to run phpstan locally:
|
e77028e
to
cf1563f
Compare
@morozov I think I fixed everything I could. Please tell me if you would like some commits to move to a PR targeting 2.11.x |
@greg0ire judging by the if-statement, it's an optional dependency. So instead of a dev-dependency, we could additionally install it for static analysis if we don't want to ignore those errors. |
Installing it as a dev-dependency would make Psalm happy both for a Doctrine dev and for our CI, I'm not following you 🤔 |
Would it be possible to convert specific baseline errors into more generic ones that wouldn't require future maintenance? E.g. we don't care of all missing Ideally, I'd like to get rid of the baseline entirely and turn it into configuration like we do with PHPStan. |
Also, I was expecting phpstan to fail because of useless ignore rules, but it doesn't 🤔 |
This is because those are disabled ( |
A quick look at the docs does not yield much… |
I just don't want to abuse dev-dependencies. This library is not a requirement for development. I'd rather ignore those errors than add the dependency. |
Ok, I will drop both commits. |
388ffdd
to
4ed400c
Compare
E.g. we can suppress all |
I agree but I can't find a way to do this here: https://psalm.dev/docs/running_psalm/configuration |
For some reason adding |
4ed400c
to
6c78851
Compare
I think it's something like: <psalm>
<issueHandlers>
<UndefinedFuncion>
<errorLevel type="suppress">
<directory name="lib/Doctrine/DBAL/Driver/SQLAnywhere"/>
</errorLevel>
</UndefinedFuncion>
</issueHandlers>
</psalm> |
Oh right, I didn't use the right keywords in my research (ignore vs suppress) |
Done, I suppressed errors related to SQLAnywhere. |
I think we should get rid of the baseline file as such and move all the suppressions in the config. The entries about |
Ok, I'll do that. |
@@ -816,16 +816,16 @@ | |||
}, | |||
{ | |||
"name": "nikic/php-parser", | |||
"version": "v4.3.0", | |||
"version": "v4.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do test with the lowest dependencies on Travis, so I'm surprised why just fixing the lock file helps. The build would fail when I tried to update PHPUnit to ^9.1
because of a bug in PHPUnit 9.1.0. Requiring ^9.1.1
solved the problem.
Depending on the exact nature of the issue, should we introduce a requirement or a conflict, or we bump/adjust some other constraint that would eliminate the conflict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do test with the lowest dependencies on Travis, so I'm surprised why just fixing the lock file helps.
This helps fix a crash I had when running Psalm, and we don't run Psalm after running composer --prefer-lowest
I think we should not use a conflict when it's something that fails in dev/CI, I can add a require-dev
constraint if you want me to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Let's do a temporary require-dev
. Additionally, is it worth reporting to Psalm so that they could fix it on their end and we could remove this later? There's either a bug on their end or an incorrect version constraint for PHPParser.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requirement added, bug reported here: vimeo/psalm#3155
For some reason a low version crashes Psalm.
3f5c589
to
e23ae1a
Compare
e23ae1a
to
ae4a286
Compare
null contradicts the phpdoc
ae4a286
to
bbf31dc
Compare
@morozov 🚢 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greg0ire, 🚢!
Release [2.10.2](https://github.com/doctrine/dbal/milestone/75) 2.10.2 ====== - Total issues resolved: **4** - Total pull requests resolved: **19** - Total contributors: **10** Improvement,Static Analysis --------------------------- - [3964: Mark every exception as immutable](doctrine#3964) thanks to @greg0ire CI,Improvement,Static Analysis ------------------------------ - [3961: Stop relying on the master version of Psalm](doctrine#3961) thanks to @greg0ire - [3951: Setup static analysis with Psalm](doctrine#3951) thanks to @greg0ire - [3799: Upgrade to PHPStan v0.12](doctrine#3799) thanks to @lcobucci Improvement,Logging,Test Suite ------------------------------ - [3957: Reworked LoggingTest to be able to test Statement::executeUpdate()](doctrine#3957) thanks to @morozov CI,Code Style,Improvement,Strict Typing --------------------------------------- - [3955: Remove baseline](doctrine#3955) thanks to @greg0ire Bug,SQLite,Schema Introspection,Schema Managers ----------------------------------------------- - [3937: Column comment incorrectly introspected on SQLite](doctrine#3937) thanks to @morozov Bug,Documentation,Prepared Statements,Query ------------------------------------------- - [3896: Updated documentation for QueryBuilder::execute() return value type](doctrine#3896) thanks to @morozov Bug,Prepared Statements ----------------------- - [3894: Make sure that the $types array has the same keys $params](doctrine#3894) thanks to @morozov - [3893: Ensure the constructor arguments are passed to custom classes](doctrine#3893) thanks to @duncan3dc - [3843: Fix unquoted stmt fragments backslash escaping](doctrine#3843) thanks to @morozov Documentation,Improvement ------------------------- - [3886: Update readme](doctrine#3886) thanks to @greg0ire - [3834: Fix docblock typos in DriverManager docs](doctrine#3834) thanks to @CHItA CI,Improvement,MariaDB,MySQL ---------------------------- - [3884: Use Docker consistently](doctrine#3884) thanks to @greg0ire - [3478: Improve readiness probe stability for containerized databases on CI](doctrine#3478) thanks to @morozov - [3883: Fix broken build](doctrine#3883) thanks to @greg0ire Bug,Documentation,Query,Query Limit/Offset Modification ------------------------------------------------------- - [3842: Fixed the QueryBuilder::setMaxResults() signature to accept NULL](doctrine#3842) thanks to @morozov Bug,Query --------- - [3832: Fix JOIN with no condition bug](doctrine#3832) thanks to @BenMorel Bug,PostgreSQL,Schema Introspection ----------------------------------- - [3821: &doctrine#91;pg&doctrine#93; fix getting table information if search&doctrine#95;path contains escaped schema name](doctrine#3821) thanks to @linniksa Documentation,Improvement,Logging --------------------------------- - [3812: Fix DebugStack#queries docblock type](doctrine#3812) thanks to @ostrolucky Bug,Regression,Schema --------------------- - [3790: fixed unqualified table name of fk constraints when using schemas](doctrine#3790) thanks to @stlrnz and @Alarich # gpg: Signature made Mon Apr 20 19:59:36 2020 # gpg: using DSA key 2C3A645671828132 # gpg: Can't check signature: public key not found # Conflicts: # README.md
@morozov I think 2 PRs from phpstorm-stubs that you've mentioned here are released (talking about this JetBrains/phpstorm-stubs#732 and JetBrains/phpstorm-stubs#727 ) |
Thanks, @vladyslavstartsev. Will be addressed in #4465. |