From 67fbac5abf929054ef0e5e5e0ae812056069f362 Mon Sep 17 00:00:00 2001 From: Sid Roberts Date: Wed, 24 Apr 2019 07:21:50 +0900 Subject: [PATCH] Logger\Adapter\AbstractAdapter::process() is now actually abstract. --- CHANGELOG-4.0.md | 1 + phalcon/Logger/Adapter/AbstractAdapter.zep | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index aa1ef1eb84b..57774d81f96 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -23,6 +23,7 @@ - `Phalcon\Mvc\Model\CriteriaInterface::limit()` now takes `offset` as an integer. [#13977](https://github.com/phalcon/cphalcon/pull/13977) - Changed `Phalcon\Mvc\Model\Manager::getModelSource()` to use `setModelSource()` internally instead of setting the source manually [#13987](https://github.com/phalcon/cphalcon/pull/13987) - The property `options` is always an array in `Phalcon\Mvc\Model\Relation`. [#13989](https://github.com/phalcon/cphalcon/pull/13989) +- `Phalcon\Logger\Adapter\AbstractAdapter::process()` is now actually abstract. [#14012](https://github.com/phalcon/cphalcon/pull/14012) ## Fixed - Fixed `Mvc\Collection::isInitialized()` now works as intended. [#13931](https://github.com/phalcon/cphalcon/pull/13931) diff --git a/phalcon/Logger/Adapter/AbstractAdapter.zep b/phalcon/Logger/Adapter/AbstractAdapter.zep index 25393233680..f244aec2bca 100644 --- a/phalcon/Logger/Adapter/AbstractAdapter.zep +++ b/phalcon/Logger/Adapter/AbstractAdapter.zep @@ -130,10 +130,7 @@ abstract class AbstractAdapter implements AdapterInterface /** * Processes the message in the adapter */ - public function process( item) -> void - { - throw new Exception("This method cannot be called directly in the adapter"); - } + abstract public function process( item) -> void; /** * Rollbacks the internal transaction