Skip to content

Additional fixes for PHP8.1 #1

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

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

mentalstring
Copy link

On PHP8.1, file uploads have a new full_path parameter which symfony1 forms don't recognize and creates all sort of form validation errors. Following symfony2+, we can simply unset it. If one truly needs to use it, it can be obtained from $_FILES.

Also, a few more fixes for uses of null where string is expected.

@Tybaze
Copy link
Owner

Tybaze commented Oct 5, 2022

All my Apologies for the delay !

@Tybaze Tybaze merged commit 0c4a0df into Tybaze:compat_php8.1 Oct 5, 2022
thePanz pushed a commit that referenced this pull request Nov 25, 2022
thePanz pushed a commit that referenced this pull request Nov 25, 2022
ValueError: fread(): Argument FriendsOfSymfony1#2 ($length) must be greater than 0

TypeError: count(): Argument #1 ($value) must be of type Countable|array Foo Given
Use Symfony Polyfill symfony/polyfill@d330c00

TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given
Do not use Symfony pollyfill, is_array is enought
Tybaze pushed a commit that referenced this pull request Feb 14, 2023
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.

3 participants