-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal Error — Yiisoft\ErrorHandler\Exception\ErrorException Class Yiisoft\Yii\Cycle\Data\Reader\EntityReader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Yiisoft\Data\Reader\FilterableDataInterface::withFilterHandlers) #562
Comments
Related with yiisoft/yii-cycle#150 |
I notice a couple of namespaces under EntityReader.php need to be adjusted ie. With reference to composer's "yiisoft/data": "^1.0", use Yiisoft\Data\Reader\Filter\FilterInterface; <--- to Yiisoft\Data\Reader\FilterInterface ie. remove Filter. use Yiisoft\Data\Reader\Filter\FilterProcessorInterface; <--- does not exist and needs to be included The file FilterProcessorInterface.php does not exist under "yiisoft/data": "^1.0" Filter folder, and will need to be included from "yiisoft/data": "^3.0@dev". The package will run after this. Also: insert namespace at top of EntityReader.php namely:
and insert following code into EntityReader.php
|
FilterProcessorInterface.php
|
|
public function withFilterHandlers(FilterHandlerInterface ...$iterableFilterHandlers): static{} is essential along with use Yiisoft\Data\Reader\FilterHandlerInterface; in the namespaces. |
Fixed in #566 |
What steps will reproduce the problem? Installing the demo
What is the expected result? A clean run
What do you get instead? The above error
Additional info
The text was updated successfully, but these errors were encountered: