28 'No valid candidate found using strategy "%s". We tested the following candidates: %s.',
30 implode(
', ', array_map([$this,
'stringify'], $classes))
33 parent::__construct($message);
36 private function stringify($mixed)
38 if (is_string($mixed)) {
42 if (is_array($mixed) && 2 === count($mixed)) {
43 return sprintf(
'%s::%s', $this->stringify($mixed[0]), $mixed[1]);
46 return is_object($mixed) ? get_class($mixed) : gettype($mixed);