Skip to content

Commit 0e30e82

Browse files
committed
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
1 parent 6ac4cda commit 0e30e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cron/Model/ResourceModel/Schedule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Schedule extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
1818
*
1919
* @return void
2020
*/
21-
public function _construct()
21+
protected function _construct()
2222
{
2323
$this->_init('cron_schedule', 'schedule_id');
2424
}

0 commit comments

Comments
 (0)