<?php
declare(strict_types=1);
namespace websharks;
class test{
public function hello(int $string): string {
return (string)$string;
}
}
echo (new test())->hello(1);
Warning: Unsupported declare 'strict_types' in /in/XF0dR on line 3
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/XF0dR on line 7
Process exited with code 255.