Documentation adjustment.

This commit is contained in:
flash 2023-08-24 23:19:22 +00:00
parent f16e361bec
commit 99cbfcac78
3 changed files with 10 additions and 7 deletions

View file

@ -2,6 +2,7 @@
"name": "flashwave/sasae",
"description": "A wrapper for Twig with added common functionality.",
"type": "library",
"homepage": "https://railgun.sh/sasae",
"license": "bsd-3-clause-clear",
"minimum-stability": "dev",
"prefer-stable": true,

14
composer.lock generated
View file

@ -980,16 +980,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.10.31",
"version": "1.10.32",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "c0eb159b598e2b637cbd52840e3d08f28d25dd47"
"reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c0eb159b598e2b637cbd52840e3d08f28d25dd47",
"reference": "c0eb159b598e2b637cbd52840e3d08f28d25dd47",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c47e47d3ab03137c0e121e77c4d2cb58672f6d44",
"reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44",
"shasum": ""
},
"require": {
@ -1038,7 +1038,7 @@
"type": "tidelift"
}
],
"time": "2023-08-24T14:26:09+00:00"
"time": "2023-08-24T21:54:50+00:00"
},
{
"name": "phpunit/php-code-coverage",
@ -2426,7 +2426,9 @@
],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": [],
"stability-flags": {
"flashwave/index": 20
},
"prefer-stable": true,
"prefer-lowest": false,
"platform": {

View file

@ -70,7 +70,7 @@ class SasaeContext implements Stringable {
/**
* Renders the template to a string, taking additional variables that are not commit to local set.
*
* @param ?array<string, mixed> $vars Additional local variables, nullable to avoid additional function calls.
* @param array<string, mixed>|null $vars Additional local variables, nullable to avoid additional function calls.
* @return string Rendered template.
*/
public function render(?array $vars = null): string {