public static function typeMisMatch($expected, $actual)
    {
        return new static(
            sprintf(
                'Expected: "%s" Received: "%s"',
                $expected,
                is_object($actual) ? get_class($actual) : gettype($actual)
            )
        );
    }
public static function typeMisMatch($expected, $actual)
    {
        return new static(
            sprintf(
                'Expected: "%s" Received: "%s"',
                $expected,
                is_object($actual) ? get_class($actual) : gettype($actual)
            )
        );
    }
public static function typeMisMatch ( $ expected , $ actual ) { return new static ( sprintf ( 'Expected: "%s" Received: "%s"' , $ expected , is_object ( $ actual ) ? get_class ( $ actual ) : gettype ( $ actual ) ) ) ; }
Static constructor to create from the expected type & the actual value.

@param string $expected
@param mixed $actual
@return static
Static constructor to create from the expected type & the actual value .