Skip to content

Commit c383b2c

Browse files
committed
Simplify getExtensions and getRendererOptions prototypes to ease extend
1 parent 1b57e55 commit c383b2c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Phug/Tester/TestCaseTrait.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function getPaths()
4242
/**
4343
* @return array
4444
*/
45-
protected function getExtensions() : array
45+
protected function getExtensions()
4646
{
4747
return ['', '.pug', '.jade'];
4848
}
@@ -56,9 +56,11 @@ protected function getRenderer()
5656
}
5757

5858
/**
59+
* @param string|null $cacheDirectory
60+
*
5961
* @return array
6062
*/
61-
protected function getRendererOptions(string $cacheDirectory = null) : array
63+
protected function getRendererOptions($cacheDirectory = null)
6264
{
6365
return [
6466
'extensions' => (array) $this->getExtensions(),

0 commit comments

Comments
 (0)