Typehinting merge #50

Merged
belliash merged 298 commits from typehinting into master 2019-04-17 11:27:52 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 102e8447a1 - Show all commits

View File

@ -4,7 +4,7 @@ class Program {
int $tot_width = 30;
char $symbol = '-';
int $middle = (int) round($tot_width/2);
int $length_word = strlen($word);
int $length_word = strlen($word);
int $middle_word = (int) round($length_word / 2);
int $last_position = $middle + $middle_word;
int $number_of_spaces = $middle - $middle_word;

View File

@ -9,7 +9,7 @@ class Operations {
break;
case 'SUB':
return int() using ($x, $y) {
return $x - $y;
return $x - $y;
};
break;
default: