Skip to content

Commit c1e09e3

Browse files
committed
fix cs and prepare release
1 parent 6b4b8f2 commit c1e09e3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Changelog
33

44
See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpCache/releases).
55

6+
2.14.2
7+
------
8+
9+
* Fixed varnish configuration examples to say `Authorization` and not `Autorization`.
10+
611
2.14.1
712
------
813

src/SymfonyCache/CacheInvalidation.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
namespace FOS\HttpCache\SymfonyCache;
1313

14-
use function class_alias;
15-
use function class_exists;
16-
1714
use Symfony\Component\HttpKernel\HttpKernelInterface;
1815
use Symfony\Component\HttpKernel\Kernel;
1916

@@ -25,15 +22,15 @@
2522
* Symfony 6 introduced a BC break in the signature of the protected method HttpKernelInterface::fetch.
2623
* Load the correct interface to match the signature.
2724
*/
28-
if (class_exists(Kernel::class) && Kernel::MAJOR_VERSION >= 6) {
25+
if (\class_exists(Kernel::class) && Kernel::MAJOR_VERSION >= 6) {
2926
// Load class for Symfony >=6.0
30-
class_alias(
27+
\class_alias(
3128
Compatibility\CacheInvalidationS6::class,
3229
CacheInvalidation::class
3330
);
3431
} else {
3532
// Load class for any other cases
36-
class_alias(
33+
\class_alias(
3734
Compatibility\CacheInvalidationLegacy::class,
3835
CacheInvalidation::class
3936
);

0 commit comments

Comments
 (0)