for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Luilliarcec\LaravelEcuadorIdentification\Support\Identifications;
use Luilliarcec\LaravelEcuadorIdentification\Contracts\IdentificationContract;
use Luilliarcec\LaravelEcuadorIdentification\Exceptions\EcuadorIdentificationException;
class FinalCustomer extends EcuadorValidations implements IdentificationContract
{
/**
* FinalCustomer constructor.
*/
public function __construct()
parent::__construct();
$this->billingCode = config('laravel-ecuador-identification.type-identifications.final-customer.billing-code');
config('laravel-ecuador-...customer.billing-code')
*
array
$billingCode
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..
}
* Validate this identification
* @param string $number
* @return \Illuminate\Config\Repository|mixed|string
* @throws EcuadorIdentificationException
public function validate(string $number)
try {
if ($number != config('laravel-ecuador-identification.final-customer.unique-value')) {
throw new EcuadorIdentificationException("Field is invalid");
} catch (EcuadorIdentificationException $e) {
throw new EcuadorIdentificationException($e->getMessage());
return $this->billingCode;
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..