<?php declare(strict_types = 1); trait Foo{ public function bar(int $int){ echo $int * 2; } public function callBar(){ $this->bar(123); } } class A{ use Foo; public function bar(string $string){ // incompatible signature! // prevents callBar from working correctly } } $a = new A; $a->bar("123"); $a->callBar();
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`