<?php

namespace Jalle19\CertificateParser\Provider;

/**
 * Interface ProviderInterface
 * @package Jalle19\CertificateParser\Provider
 */
interface ProviderInterface
{

    /**
     * @return resource the raw X.509 certificate
     */
    public function getRawCertificate();

}

<?php

namespace Jalle19\CertificateParser\Provider;

/**
 * Interface ProviderInterface
 * @package Jalle19\CertificateParser\Provider
 */
interface ProviderInterface
{

    /**
     * @return array
     */
    public function getRawCertificate();

}

--- 
+++ 
@@ -10,7 +10,7 @@
 {
 
     /**
-     * @return array
+     * @return resource the raw X.509 certificate
      */
     public function getRawCertificate();
 
Change the interface phpdoc (resource is returned, not array)

