<?php error_reporting(E_ALL | E_STRICT); class Psr0ClassReflector extends ReflectionClass { function __construct($x) { } } $x = new Psr0ClassReflector('foobar broken class name'); var_dump($x->getName());