Skip to content
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

Return type of Alchemy\BinaryDriver\Configuration::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool #875

Open
alesusgit opened this issue Aug 31, 2022 · 1 comment · May be fixed by #900

Comments

@alesusgit
Copy link

Q A
Bug? yes

Actual Behavior

Currently I got an error:
<b>Fatal error</b>: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Alchemy\BinaryDriver\Configuration::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/Configuration.php:79

Expected Behavior

Error should not appear

Steps to Reproduce

All you have to do is use FFMpeg like this:
$probe = FFMpeg::create()->open($mediaUrl);

Possible Solutions

Quick solution is to add comment #[\ReturnTypeWillChange] before each function in file vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/Configuration.php

@harikt harikt linked a pull request Apr 20, 2023 that will close this issue
@bwaindwain
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants