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

Fix TypeError for Zend_Validate_File_Count property $_files #41

Closed
wants to merge 9 commits into from
Closed

Fix TypeError for Zend_Validate_File_Count property $_files #41

wants to merge 9 commits into from

Conversation

JohnyRicio
Copy link

PHP 8.0 returned this error:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/jiri/www/portal/vendor/magento/zendframework1/library/Zend/Validate/File/Count.php:257
Stack trace:
#0 /home/jiri/www/portal/vendor/magento/zendframework1/library/Zend/File/Transfer/Adapter/Abstract.php(649): Zend_Validate_File_Count->isValid()
#1 /home/jiri/www/portal/vendor/magento/zendframework1/library/Zend/File/Transfer/Adapter/Http.php(148): Zend_File_Transfer_Adapter_Abstract->isValid()
#2 /home/jiri/www/portal/vendor/magento/zendframework1/library/Zend/Form/Element/File.php(444): Zend_File_Transfer_Adapter_Http->isValid()

This patch fixing it.

@JohnyRicio JohnyRicio closed this Dec 10, 2021
@JohnyRicio JohnyRicio reopened this Dec 10, 2021
karyna-t and others added 8 commits November 24, 2022 14:26
…t compatible with PHP 8.1

    - Fixed PHP8 error - ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of Zend_Pdf_NameTree::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/magento/zendframework1/library/Zend/Pdf/NameTree.php
    - Fixed PHP8 error - Deprecated Functionality: Optional parameter $genNum declared before required parameter $factory is implicitly treated as a required parameter in vendor/magento/zendframework1/library/Zend/Pdf/Element/Reference.php on line 91
- Rollback argument value update
@JohnyRicio JohnyRicio closed this by deleting the head repository Nov 24, 2022
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 this pull request may close these issues.

5 participants