Fatal error: Declaration of FacturaScripts\Plugins\YInventario\Model\Egreso::getReceipts() must be compatible with FacturaScripts\Core\Model\Base\InvoiceTrait::getReceipts(): array in /home/pruebas/public_html/Plugins/YInventario/Model/Egreso.php on line 75
Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Declaration of FacturaScripts\Plugins\YInventario\Model\Egreso::getReceipts() must be compatible with FacturaScripts\Core\Model\Base\InvoiceTrait::getReceipts(): array Whoops\Exception\ErrorException thrown with message "Declaration of FacturaScripts\Plugins\YInventario\Model\Egreso::getReceipts() must be compatible with FacturaScripts\Core\Model\Base\InvoiceTrait::getReceipts(): array" Stacktrace: #2 Whoops\Exception\ErrorException in /home/pruebas/public_html/Plugins/YInventario/Model/Egreso.php:75 #1 Whoops\Run:handleError in /home/pruebas/public_html/vendor/filp/whoops/src/Whoops/Run.php:514 #0 Whoops\Run:handleShutdown in [internal]:0
Stack frames (3)
2
Whoops\Exception\ErrorException
/Plugins/YInventario/Model/Egreso.php75
1
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php514
0
Whoops\Run handleShutdown
[internal]0
/home/pruebas/public_html/Plugins/YInventario/Model/Egreso.php
    {
        $newLine = new LineaEgreso();
        $newLine->idegreso = $this->idegreso;
        $newLine->irpf = $this->irpf;
        $newLine->actualizastock = $this->getStatus()->actualizastock;
 
        $newLine->loadFromData($data, $exclude);
        return $newLine;
    }
 
    public function paid(): bool
    {
        if(is_null($this->pagada)){
            return false;
        }
        
        return $this->pagada;
    }
 
    public function getReceipts()
    {
        $receipt = new ReciboCliente();
        $where = [new DataBaseWhere('idegreso', $this->idegreso)];
        return $receipt->all($where, ['numero' => 'ASC', 'idrecibo' => 'ASC'], 0, 0);
    }
 
    public function parentDocuments() : array
    {
        return Base\TransformerDocument::parentDocuments();
    }
 
    public function testDate(): bool
    {
        // TODO: Implement testDate() method.
    }
}
/home/pruebas/public_html/vendor/filp/whoops/src/Whoops/Run.php
     *
     * @return void
     */
    public function handleShutdown()
    {
        // If we reached this step, we are in shutdown handler.
        // An exception thrown in a shutdown handler will not be propagated
        // to the exception handler. Pass that information along.
        $this->canThrowExceptions = false;
 
        $error = $this->system->getLastError();
        if ($error && Misc::isLevelFatal($error['type'])) {
            // If there was a fatal error,
            // it was not handled in handleError yet.
            $this->allowQuit = false;
            $this->handleError(
                $error['type'],
                $error['message'],
                $error['file'],
                $error['line']
            );
        }
    }
 
 
    /**
     * @param InspectorFactoryInterface $factory
     *
     * @return void
     */
    public function setInspectorFactory(InspectorFactoryInterface $factory)
    {
        $this->inspectorFactory = $factory;
    }
 
    public function addFrameFilter($filterCallback)
    {
        if (!is_callable($filterCallback)) {
            throw new \InvalidArgumentException(sprintf(
                "A frame filter must be of type callable, %s type given.", 
[internal]

Environment & details:

empty
empty
empty
empty
Key Value
__Laminas Array ( [_REQUEST_ACCESS_TIME] => 1765515523.8777 [_VALID] => Array ( [Laminas\Session\Validator\RemoteAddr] => 216.73.216.30 [Laminas\Session\Validator\HttpUserAgent] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) ) )
Key Value
CONTEXT_DOCUMENT_ROOT /home/pruebas/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/pruebas/public_html
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST pruebas.isdsa.com.ar
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH /bin:/usr/bin:/usr/local/php/bin
PHPRC /home/pruebas
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 216.73.216.30
REMOTE_PORT 19822
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /
SCRIPT_FILENAME /home/pruebas/public_html/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 158.69.60.238
SERVER_ADMIN webmaster@pruebas.isdsa.com.ar
SERVER_NAME pruebas.isdsa.com.ar
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.48 (Unix) OpenSSL/1.0.2k-fips
SSL_TLS_SNI pruebas.isdsa.com.ar
UNIQUE_ID aTuhA1-13Dcw-1h_WqPeCgAAANg
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1765515523.2439
REQUEST_TIME 1765515523
argv Array ( )
argc 0
Key Value
CONTEXT_DOCUMENT_ROOT /home/pruebas/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/pruebas/public_html
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST pruebas.isdsa.com.ar
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH /bin:/usr/bin:/usr/local/php/bin
PHPRC /home/pruebas
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 216.73.216.30
REMOTE_PORT 19822
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /
SCRIPT_FILENAME /home/pruebas/public_html/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 158.69.60.238
SERVER_ADMIN webmaster@pruebas.isdsa.com.ar
SERVER_NAME pruebas.isdsa.com.ar
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.48 (Unix) OpenSSL/1.0.2k-fips
SSL_TLS_SNI pruebas.isdsa.com.ar
UNIQUE_ID aTuhA1-13Dcw-1h_WqPeCgAAANg
0. Whoops\Handler\PlainTextHandler
1. Whoops\Handler\JsonResponseHandler
2. Whoops\Handler\PrettyPageHandler