for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NFePHP\Common\Certificate;
class Oids
{
private static $oidsTable = array();
/**
* Construtor carrga a tabela de Oids do arquivo json
*/
public function __construct()
$json = file_get_contents('oids.json');
self::$oidsTable = json_decode($json, true);
json_decode($json, true)
*
array
$oidsTable
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* getOid
* @param type $key
* @return mixed
public static function getOid($key)
if (isset(self::$oidsTable[$key])) {
return self::$oidsTable[$key];
return false;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..