Skip to content

Commit f8131ab

Browse files
committed
Drop support for PHP < 7.1
1 parent 2578859 commit f8131ab

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php: ['5.5', '5.6', '7.0', '7.4', '8.0', '8.1', '8.4', '8.5']
16+
php: ['7.1', '7.4', '8.0', '8.1', '8.4', '8.5']
1717
renderer: ['talesoft/tale-pug:^1.5', 'pug-php/pug:^2.7.6', 'pug-php/pug:^3.4.1']
1818
setup: ['lowest', 'stable']
1919

src/PugRenderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ public function __construct($templatePath = null, $options = [], $attributes = [
5252
*
5353
* @return App
5454
*/
55-
public static function create(App $app = null, $templatePath = null, array $options = [], array $attributes = [])
55+
public static function create(?App $app = null, $templatePath = null, array $options = [], array $attributes = [])
5656
{
5757
if (!$app) {
5858
$app = new App();
5959
}
60+
6061
$container = $app->getContainer();
6162
$templatePath = $templatePath ?: (isset($container['templates.path']) ? $container['templates.path'] : null);
6263
$container['renderer'] = new static($templatePath, $options, $attributes);

0 commit comments

Comments
 (0)