Постфиксная запись типов вместо префиксной
This commit is contained in:
parent
04662a94df
commit
11370eecc9
33 changed files with 95 additions and 79 deletions
|
|
@ -124,7 +124,7 @@ class SQLStatementExtractor {
|
|||
* @param string $string The string to check in (haystack).
|
||||
* @return boolean True if $string ends with $check, or they are equal, or $check is empty.
|
||||
*/
|
||||
protected static function endsWith(/*.string.*/$check, $string) {
|
||||
protected static function endsWith($check/*: string*/, $string) {
|
||||
if ($check === "" || $check === $string) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class TemplateImage
|
|||
return "";
|
||||
}
|
||||
|
||||
function imageText($text, /*.\stdClass.*/$value)
|
||||
function imageText($text, $value/*: \stdClass*/)
|
||||
{
|
||||
assert(is_string($text));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue