Skip to content

Commit eec3b69

Browse files
authored
Merge pull request #370 from FriendsOfSymfony/update-master
Update master from 1.4 branch
2 parents d43f358 + 83a241c commit eec3b69

File tree

11 files changed

+23
-18
lines changed

11 files changed

+23
-18
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ script:
6363
- if [[ "$DOCCHECK" = true ]]; then make -C doc spelling; fi
6464

6565
after_script:
66-
# avoid uploading the code coverage for HHVM as it cannot generate it (PHPUnit dropped the old HHVM driver and the
66+
# avoid uploading the code coverage for HHVM as it cannot generate it (PHPUnit dropped the old HHVM driver and the
6767
# XDebug API is not implemented in HHVM 3.5) and we don't want to cancel the Scrutinizer analysis by notifying
6868
# it than no coverage data is available
6969
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
9494
tags are formatted, use the new `header_formatter` option with a
9595
`TagHeaderFormatter`.
9696

97+
1.4.3
98+
-----
99+
100+
* Avoid warning about `count(null)` in PHP 7.2.
101+
97102
1.4.2
98103
-----
99104

src/CacheInvalidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function supports($operation)
110110
*
111111
* @return $this
112112
*
113-
* @throws \Exception When trying to override the event dispatcher
113+
* @throws \Exception when trying to override the event dispatcher
114114
*/
115115
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
116116
{
@@ -262,9 +262,9 @@ public function invalidateRegex($path, $contentType = null, $hosts = null)
262262
/**
263263
* Send all pending invalidation requests.
264264
*
265-
* @return int The number of cache invalidations performed per caching server
265+
* @return int the number of cache invalidations performed per caching server
266266
*
267-
* @throws ExceptionCollection If any errors occurred during flush
267+
* @throws ExceptionCollection if any errors occurred during flush
268268
*/
269269
public function flush()
270270
{

src/Exception/InvalidUrlException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class InvalidUrlException extends InvalidArgumentException implements HttpCacheException
1818
{
1919
/**
20-
* @param string $url The invalid URL
20+
* @param string $url the invalid URL
2121
* @param string $reason Further explanation why the URL was invalid (optional)
2222
*
2323
* @return self

src/Exception/MissingHostException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class MissingHostException extends \RuntimeException implements HttpCacheException
1919
{
2020
/**
21-
* @param string $path The path that was asked to be invalidated
21+
* @param string $path the path that was asked to be invalidated
2222
*
2323
* @return MissingHostException
2424
*/

src/Exception/UnsupportedProxyOperationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class UnsupportedProxyOperationException extends \RuntimeException implements HttpCacheException
1919
{
2020
/**
21-
* @param string $method Name of the HTTP method that would be required
21+
* @param string $method name of the HTTP method that would be required
2222
*
2323
* @return UnsupportedProxyOperationException
2424
*/

src/ProxyClient/Invalidation/BanCapable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public function ban(array $headers);
6464
*
6565
* $client->banPath('*.png$', null, '^www.example.com$');
6666
*
67-
* @param string $path Regular expression pattern for URI to
67+
* @param string $path regular expression pattern for URI to
6868
* invalidate
69-
* @param string $contentType Regular expression pattern for the content
69+
* @param string $contentType regular expression pattern for the content
7070
* type to limit banning, for instance 'text'
71-
* @param array|string $hosts Regular expression of a host name or list
71+
* @param array|string $hosts regular expression of a host name or list
7272
* of exact host names to limit banning
7373
*
7474
* @return $this

src/ProxyClient/ProxyClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ interface ProxyClient
2323
/**
2424
* Send all pending invalidation requests.
2525
*
26-
* @return int The number of cache invalidations performed per caching server
26+
* @return int the number of cache invalidations performed per caching server
2727
*
28-
* @throws ExceptionCollection If any errors occurred during flush
28+
* @throws ExceptionCollection if any errors occurred during flush
2929
*/
3030
public function flush();
3131
}

src/SymfonyCache/CacheEvent.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class CacheEvent extends Event
4141
/**
4242
* Make sure your $kernel implements CacheInvalidationInterface.
4343
*
44-
* @param CacheInvalidation $kernel The kernel raising with this event
45-
* @param Request $request The request being processed
46-
* @param Response $response The response, if available
44+
* @param CacheInvalidation $kernel the kernel raising with this event
45+
* @param Request $request the request being processed
46+
* @param Response $response the response, if available
4747
*/
4848
public function __construct(CacheInvalidation $kernel, Request $request, Response $response = null)
4949
{
@@ -76,7 +76,7 @@ public function getRequest()
7676
* Events that occur after the response is created provide the default response.
7777
* Event listeners can also set the response to make it available here.
7878
*
79-
* @return Response|null The response if one was set
79+
* @return Response|null the response if one was set
8080
*/
8181
public function getResponse()
8282
{

src/SymfonyCache/UserContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private function isSessionName($name)
220220
*
221221
* @param Request $request
222222
*
223-
* @return Request The request that will return the user context hash value
223+
* @return Request the request that will return the user context hash value
224224
*/
225225
private function generateHashLookupRequest(Request $request)
226226
{

0 commit comments

Comments
 (0)