diff --git a/composer.json b/composer.json index 8134d2456b7..4806cdddc98 100644 --- a/composer.json +++ b/composer.json @@ -40,15 +40,15 @@ "require-dev": { "doctrine/coding-standard": "9.0.0", "jetbrains/phpstorm-stubs": "2021.1", - "phpstan/phpstan": "1.1.1", + "phpstan/phpstan": "1.2.0", "phpstan/phpstan-phpunit": "1.0.0", - "phpstan/phpstan-strict-rules": "1.0.0", + "phpstan/phpstan-strict-rules": "1.1.0", "phpunit/phpunit": "9.5.10", "psalm/plugin-phpunit": "0.16.1", "squizlabs/php_codesniffer": "3.6.1", "symfony/cache": "^5.2|^6.0", "symfony/console": "^2.0.5|^3.0|^4.0|^5.0|^6.0", - "vimeo/psalm": "4.12.0" + "vimeo/psalm": "4.13.0" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." diff --git a/docs/en/reference/caching.rst b/docs/en/reference/caching.rst index e22f4aeb0c0..3f620ac9c33 100644 --- a/docs/en/reference/caching.rst +++ b/docs/en/reference/caching.rst @@ -1,7 +1,7 @@ Caching ======= -A ``Doctrine\DBAL\Statement`` can automatically cache result sets. The +A ``Doctrine\DBAL\Connection`` can automatically cache result sets. The feature is optional though, and by default, no result set is cached. To use the result cache, there are three mandatory steps: @@ -9,7 +9,6 @@ To use the result cache, there are three mandatory steps: 1. Configure a global result cache, or provide one at query time. 2. Provide a cache profile for the result set you want to cache when making a query. -3. Read the entire result set from the database. Configuring the result cache ---------------------------- @@ -53,24 +52,3 @@ default cache instance: executeCacheQuery($query, $params, $types, new QueryCacheProfile(0, "some key")); - $data = $stmt->fetchAllAssociative(); - -.. warning:: - - When using the cache layer not all fetch modes are supported. See - the code of the ``Doctrine\DBAL\Cache\CachingResult`` for - details. diff --git a/psalm.xml.dist b/psalm.xml.dist index c05cc040e57..f4b4972772c 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -195,12 +195,6 @@ - - - - - -