chore: Аннотации к типам
This commit is contained in:
parent
e2ba6bd46e
commit
e5713e9015
28 changed files with 305 additions and 110 deletions
|
|
@ -13,12 +13,12 @@ use PHPTAL_Php_TalesInternal,
|
|||
|
||||
class Tales_DateTime implements PHPTAL_Tales
|
||||
{
|
||||
static public function date(string $expression, $nothrow = false): string
|
||||
static public function date(string $expression, bool $nothrow = false): string
|
||||
{
|
||||
return "ctiso\\Tales::phptal_date(".PHPTAL_Php_TalesInternal::path($expression).")";
|
||||
}
|
||||
|
||||
static public function time(string $expression, $nothrow = false): string
|
||||
static public function time(string $expression, bool $nothrow = false): string
|
||||
{
|
||||
return "ctiso\\Tales::phptal_time(".PHPTAL_Php_TalesInternal::path($expression).")";
|
||||
}
|
||||
|
|
@ -26,7 +26,7 @@ class Tales_DateTime implements PHPTAL_Tales
|
|||
|
||||
class Tales_Component implements PHPTAL_Tales
|
||||
{
|
||||
static public function component(string $expression, $nothrow = false): string
|
||||
static public function component(string $expression, bool $nothrow = false): string
|
||||
{
|
||||
$s = PHPTAL_Php_TalesInternal::string($expression);
|
||||
return "ctiso\\Tales::phptal_component(" . $s . ")";
|
||||
|
|
@ -35,7 +35,7 @@ class Tales_Component implements PHPTAL_Tales
|
|||
|
||||
class Tales_Assets implements PHPTAL_Tales
|
||||
{
|
||||
static public function assets(string $expression, $nothrow = false): string
|
||||
static public function assets(string $expression, bool $nothrow = false): string
|
||||
{
|
||||
$s = PHPTAL_Php_TalesInternal::string($expression);
|
||||
return "ctiso\\Tales::phptal_asset(" . $s . ")";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue