-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Wrong Implementation psr-16 #1049
Comments
This is not PhpSpreadsheet code, you are referencing code from another library. File a bug with that other library. |
@PowerKiKi I show example how to reproduce error. https://github.com/PHPOffice/PhpSpreadsheet/blob/master/docs/topics/memory_saving.md $cache = new MyCustomPsr16Implementation();
\PhpOffice\PhpSpreadsheet\Settings::setCache($cache); This not compatible with PSR-16 |
Those two lines of code have nothing to do with PSR-16. And they tell me nothing useful for PhpSpreadsheet. The implementation of Your lib incorrectly type hint array: But the PSR-16 specification clearly allow an iterable, not only an array: Again there is nothing wrong with PhpSpreadsheet |
This is:
Error:
Fatal error: Uncaught TypeError: Argument 1 passed to Driver::deleteItems() must be of the type array, object given, called in Psr16Adapter.php on line 178 and defined in lib/Phpfastcache/Core/Pool/CacheItemPoolTrait.php:297
What is the expected behavior?
must be of the type array,
What is the current behavior?
Object given
What are the steps to reproduce?
Set cache adapter
The text was updated successfully, but these errors were encountered: