Skip to content

Commit 78c213d

Browse files
committed
some classes & members marked as final (BC break)
1 parent 0e5d069 commit 78c213d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Bridges/CacheDI/CacheExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Cache extension for Nette DI.
1717
*/
18-
class CacheExtension extends Nette\DI\CompilerExtension
18+
final class CacheExtension extends Nette\DI\CompilerExtension
1919
{
2020
/** @var string */
2121
private $tempDir;

src/Bridges/CacheLatte/CacheMacro.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* Macro {cache} ... {/cache}
1919
*/
20-
class CacheMacro implements Latte\IMacro
20+
final class CacheMacro implements Latte\IMacro
2121
{
2222
use Nette\SmartObject;
2323

src/Caching/Cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(IStorage $storage, $namespace = null)
5454
/**
5555
* Returns cache storage.
5656
*/
57-
public function getStorage(): IStorage
57+
final public function getStorage(): IStorage
5858
{
5959
return $this->storage;
6060
}
@@ -63,7 +63,7 @@ public function getStorage(): IStorage
6363
/**
6464
* Returns cache namespace.
6565
*/
66-
public function getNamespace(): string
66+
final public function getNamespace(): string
6767
{
6868
return (string) substr($this->namespace, 0, -1);
6969
}

0 commit comments

Comments
 (0)