Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"doctrine/coding-standard": "^4.0",
"jetbrains/phpstorm-stubs": "^2018.1.2",
"phpstan/phpstan": "^0.10.1",
"phpstan/phpstan-phpunit": "^0.10.0",
"phpunit/phpunit": "^7.1.2",
"phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5",
"symfony/console": "^2.0.5|^3.0|^4.0",
Expand Down
52 changes: 51 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon

parameters:
level: 3
paths:
- %currentWorkingDirectory%/lib
- %currentWorkingDirectory%/tests
autoload_files:
- %currentWorkingDirectory%/tests/phpstan-polyfill.php
reportUnmatchedIgnoredErrors: false
Expand Down Expand Up @@ -44,3 +48,10 @@ parameters:

# weird class name, doesn't exist in stubs either
- '~unknown class OCI-(Lob|Collection)~'

# magic stuff
- '~^Access to property \$\w+ on an unknown class Doctrine\\MyFetchClass\.\z~'

excludes_analyse:
# legacy remnants from doctrine/common
- tests/Doctrine/Tests/Mocks/TaskMock.php
20 changes: 5 additions & 15 deletions tests/Doctrine/Tests/DBAL/Cache/QueryCacheProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,19 @@ class QueryCacheProfileTest extends DbalTestCase
private const LIFETIME = 3600;
private const CACHE_KEY = 'user_specified_cache_key';

/**
* @var QueryCacheProfile
*/
/** @var QueryCacheProfile */
private $queryCacheProfile;

/**
* @var string
*/
/** @var string */
private $query = 'SELECT * FROM foo WHERE bar = ?';

/**
* @var int[]
*/
/** @var int[] */
private $params = [666];

/**
* @var string[]
*/
/** @var int[] */
private $types = [ParameterType::INTEGER];

/**
* @var string[]
*/
/** @var string[] */
private $connectionParams = [
'dbname' => 'database_name',
'user' => 'database_user',
Expand Down
Loading