<?php class A { public function b(DateTime $c) { print_r($c); } } $a = new A(); try { $a->b(""); } catch (TypeError $e) { echo "subidubi" . $e->getMessage(); }
You have javascript disabled. You will not be able to edit any code.