Use strict type hinting in all tests.
All checks were successful
The build was successful.

This commit is contained in:
2018-09-14 21:32:08 +02:00
parent 8b48786f29
commit ca00cadba7
5 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ class Program {
$this->b($this->a('First A'), $this->a('Second A'), $this->a('Third A'));
}
function a($p) {
function a(string $p) {
$backtrace = debug_backtrace();
if(isset($backtrace[0]['args'])) {
var_export($backtrace[0]['args']);
@@ -14,7 +14,7 @@ class Program {
return $p;
}
function b($p1, $p2, $p3) {
function b(string $p1, string $p2, string $p3) {
print("$p1, $p2, $p3");
}