( ! ) 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 |
# | Time | Memory | Function | Location |
1 | 0.0002 | 638984 | {main}( ) | .../index.php:0 |
2 | 0.0086 | 1308960 | handle( $uri = '/produtos/5129/cloro-fiber-acao-multipla' ) | .../index.php:42 |
3 | 0.0100 | 1355888 | dispatch( ) | .../index.php:42 |
4 | 0.0121 | 1496848 | callActionMethod( $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 |
5 | 0.0121 | 1497608 | App\Controllers\ProdutosController->indexAction( $id = '5129', $url = 'cloro-fiber-acao-multipla', $tipo = 'p' ) | .../index.php:42 |
6 | 0.0124 | 1506000 | App\Controllers\ProdutosController->getProduto( $id = '5129' ) | .../ProdutosController.php:97 |