File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ class OutputHelper
20
20
use Nette \SmartObject;
21
21
22
22
/** @var array */
23
- public $ dependencies ;
23
+ public $ dependencies = [] ;
24
24
25
- /** @var Cache */
25
+ /** @var Cache|null */
26
26
private $ cache ;
27
27
28
28
/** @var string */
@@ -40,12 +40,12 @@ public function __construct(Cache $cache, $key)
40
40
/**
41
41
* Stops and saves the cache.
42
42
*/
43
- public function end (array $ dependencies = null ): void
43
+ public function end (array $ dependencies = [] ): void
44
44
{
45
45
if ($ this ->cache === null ) {
46
46
throw new Nette \InvalidStateException ('Output cache has already been saved. ' );
47
47
}
48
- $ this ->cache ->save ($ this ->key , ob_get_flush (), ( array ) $ dependencies + ( array ) $ this ->dependencies );
48
+ $ this ->cache ->save ($ this ->key , ob_get_flush (), $ dependencies + $ this ->dependencies );
49
49
$ this ->cache = null ;
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments