Skip to content

Commit

Permalink
update: only support php 8.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 8, 2021
1 parent 98a3460 commit 8a6d166
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4, 8.0] # 7.2,
php: [8.0] # 7.2,7.4,
os: [ubuntu-latest, macOS-latest] # windows-latest,
# include: # will not testing on php 7.2
# - os: 'ubuntu-latest'
Expand Down
6 changes: 2 additions & 4 deletions app/Lib/Template/HtmlTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ class HtmlTemplate extends TextTemplate
/**
* @param string $viewPath
* @param array $vars
*
* @return string
*/
public function render(string $viewPath, array $vars = []): string
public function render(string $viewPath, array $vars = []): void
{
$viewFile = $this->findTplFile($viewPath);

return $this->renderFile($viewFile, $vars);
echo $this->renderFile($viewFile, $vars);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Lib/Template/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Template


## Text2Template
## EasyTemplate

0 comments on commit 8a6d166

Please sign in to comment.