if ( ! empty( $class ) ) { $classname = $class->getName(); $details .= "$$name must be a $classname objectn"; } if ( $arg->allowsNull() ) { $details .= "$$name can be nulln"; } if ( $arg->isPassedByReference() ) { $details .= "$$name is passed by referencen"; } return $details; }