From 0e30e8237af256d38fa666e404eb30b24241c43d Mon Sep 17 00:00:00 2001 From: Darren Felton Date: Fri, 8 Nov 2019 17:09:16 -0600 Subject: [PATCH] Corrected scope of _construct to protected _construct() is intended to act as a "mock" constructor and not supposed to be accessed outside of the context of $this --- app/code/Magento/Cron/Model/ResourceModel/Schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Cron/Model/ResourceModel/Schedule.php b/app/code/Magento/Cron/Model/ResourceModel/Schedule.php index 120e0ce6432c5..87f9d5cef02ec 100644 --- a/app/code/Magento/Cron/Model/ResourceModel/Schedule.php +++ b/app/code/Magento/Cron/Model/ResourceModel/Schedule.php @@ -18,7 +18,7 @@ class Schedule extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb * * @return void */ - public function _construct() + protected function _construct() { $this->_init('cron_schedule', 'schedule_id'); }