<?php class A {} class B {} class Overloaded { protected $value; function setValue(string $x) { print __METHOD__ . '(string)' . PHP_EOL; $this->value = $x; } function setVаlue(int $x) { print __METHOD__ . '(int)' . PHP_EOL; $this->value = $x; } } $something = new Overloaded(); $something->setValue('120'); var_dump($something); $something->setVаlue(99); var_dump($something);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`