( ! ) Fatal error: Uncaught TypeError: App\Controllers\ProdutosController::getProduto(): Return value must be of type App\Core\Entities\ProdutoSiteEntity, null returned in /var/www/html/app/controllers/ProdutosController.php on line 174
( ! ) TypeError: App\Controllers\ProdutosController::getProduto(): Return value must be of type App\Core\Entities\ProdutoSiteEntity, null returned in /var/www/html/app/controllers/ProdutosController.php on line 174
Call Stack
#TimeMemoryFunctionLocation
10.0002638984{main}( ).../index.php:0
20.00861308960handle( $uri = '/produtos/5129/cloro-fiber-acao-multipla' ).../index.php:42
30.01001355888dispatch( ).../index.php:42
40.01211496848callActionMethod( $handler = class App\Controllers\ProdutosController { protected $container = class Phalcon\Di\FactoryDefault { protected $services = [...]; protected $sharedInstances = [...]; protected $eventsManager = NULL }; public $breadCrumbs = NULL; protected $space = NULL; public ?array $linhaToRedirect = NULL; public ?App\Core\Iterators\ProdutoVistoList $produtosVistos = class App\Core\Iterators\ProdutoVistoList { protected int $position = 0; public array $list = [...] }; public $session = class Phalcon\Session\Manager { protected $container = class Phalcon\Di\FactoryDefault { ... }; private $adapter = class Phalcon\Session\Adapter\Stream { ... }; private $name = 'PHPSESSID'; private $options = [...]; private $uniqueId = '' }; public $httpAdapter = class App\Core\Infra\Adapters\Http\HttpAdapterImpl { public bool $debug = FALSE; public App\Core\Infra\Adapters\Http\Enums\HttpRevalidateEnum $revalidateCache = enum App\Core\Infra\Adapters\Http\Enums\HttpRevalidateEnum::NONE(0); public string $cachePrefix = 'http_cache_'; public bool $cache = TRUE; public int $cacheTimeInSeconds = 3600; public string $cacheDir = '/var/www/html/app/config/../cache/'; public int $timeout = 5; public array $headers = [...]; private array $config = [...]; private string $revalidadeFile = '/var/www/html/app/config/../cache/revalidate.json'; private ?App\Core\Infra\Adapters\Http\HttpRequest $lastRequest = class App\Core\Infra\Adapters\Http\HttpRequest { ... }; public GuzzleHttp\Client $client = class GuzzleHttp\Client { ... }; public readonly Phalcon\Config\Config $baseConfig = class Phalcon\Config\Config { ... } } }, $actionMethod = 'indexAction', $params = ['id' => '5129', 'url' => 'cloro-fiber-acao-multipla', 'tipo' => 'p'] ).../index.php:42
50.01211497608App\Controllers\ProdutosController->indexAction( $id = '5129', $url = 'cloro-fiber-acao-multipla', $tipo = 'p' ).../index.php:42
60.01241506000App\Controllers\ProdutosController->getProduto( $id = '5129' ).../ProdutosController.php:97