Skip to content
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

Enable phpstan in DBAL tests #3582

Merged
merged 3 commits into from
Jun 5, 2019
Merged

Enable phpstan in DBAL tests #3582

merged 3 commits into from
Jun 5, 2019

Conversation

jwage
Copy link
Member

@jwage jwage commented May 31, 2019

Q A
Type improvement
BC Break no

Summary

Enable phpstan in DBAL tests.

tests/continuousphp/bootstrap.php Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php Outdated Show resolved Hide resolved
tests/Doctrine/Tests/DBAL/Driver/PDOPgSql/DriverTest.php Outdated Show resolved Hide resolved
tests/Doctrine/Tests/DBAL/Driver/StatementIteratorTest.php Outdated Show resolved Hide resolved
tests/Doctrine/Tests/DBAL/Types/JsonTest.php Outdated Show resolved Hide resolved
@Ocramius
Copy link
Member

Ocramius commented Jun 1, 2019

Failures are only in CS:

FILE: tests/Doctrine/Tests/DBAL/Types/JsonTest.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 15 | ERROR | [x] Type RuntimeException is not used in this file.
    |       |     (SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse)
 18 | ERROR | [x] Type json_encode is not used in this file.
    |       |     (SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 15 | ERROR | Class TemporaryTableTest contains write-only property
    |       | $tempTableCreated.
    |       | (SlevomatCodingStandard.Classes.UnusedPrivateElements.WriteOnlyProperty)
--------------------------------------------------------------------------------

@morozov morozov mentioned this pull request Jun 2, 2019
@jwage jwage force-pushed the phpstan-tests branch 2 times, most recently from 51d3cbc to 95b1425 Compare June 5, 2019 16:17
@morozov
Copy link
Member

morozov commented Jun 5, 2019

I only noticed now that the PR targeted against develop. Since it's not supposed to contain breaking changes, should we retarget it against master?

@jwage
Copy link
Member Author

jwage commented Jun 5, 2019

I can try and see how hard it will be to rebase against master.

@jwage
Copy link
Member Author

jwage commented Jun 5, 2019

I don't think doing this against master will work because the changes made to the tests depend on all the type and api work that we did in develop.

@morozov
Copy link
Member

morozov commented Jun 5, 2019

At least we tried. Maybe it could be done later. It still would make sense to get it in master because this is where we get most of the code changes before 3.0 is released.

@jwage jwage requested a review from morozov June 5, 2019 20:24
@morozov morozov merged commit 3887c5b into doctrine:develop Jun 5, 2019
@jwage jwage deleted the phpstan-tests branch June 5, 2019 22:55
@morozov morozov self-assigned this Jun 7, 2019
morozov added a commit that referenced this pull request Jun 13, 2019
Enable phpstan in DBAL tests
morozov added a commit that referenced this pull request Jun 27, 2019
Enable phpstan in DBAL tests
morozov added a commit that referenced this pull request Jun 27, 2019
Enable phpstan in DBAL tests
morozov added a commit that referenced this pull request Jun 27, 2019
Enable phpstan in DBAL tests
morozov added a commit to morozov/dbal that referenced this pull request Aug 26, 2019
morozov added a commit to morozov/dbal that referenced this pull request Aug 26, 2019
morozov added a commit to morozov/dbal that referenced this pull request Aug 26, 2019
morozov added a commit to morozov/dbal that referenced this pull request Aug 27, 2019
morozov added a commit that referenced this pull request Nov 2, 2019
Enable phpstan in DBAL tests
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants