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

Realign #2

Merged
merged 112 commits into from
Aug 24, 2024
Merged

Realign #2

merged 112 commits into from
Aug 24, 2024

Conversation

mattimatti
Copy link
Collaborator

No description provided.

garryxigen and others added 30 commits September 26, 2022 11:12
- Deprecated: apcu_store(): Passing null to parameter #3 ($ttl) of type int is deprecated
…pects exactly 0 arguments, 1 given

- Delete unrable statements
…essfully.

As part of accomplishing this, the following was done:

- Added "yoast/phpunit-polyfills" as a dev dependency.
- Modified fixtures to use the polyfilled methods (as they are cross version compatible).
- Added a custom test runner (that is compatible across PHPUnit versions).
- Modified PHPUnit version to be "^7|^8|^9", since each is supported by different PHP versions.
- Modified the rector version to "^0.12.19", as that is the last one still supporting PHP 7.1.
- Changed expectNotice() and expectError() to expecting the equivalent PHPUnit exception, to avoid deprecation notice and support PHPUnit 7, where this feature is absent.
- Removed the requires annotation in Zend_Filter_Encrypt_OpensslTest
- Explicitly added "RC4" as the value for the algo to appease supported PHP versions. Why RC4? Because that is the default, and has been the default, and ZF has had no option to override it. Such option could be introduced in a separate PR maybe.
- Fixed a type related warning in OpenSSL related tests, by casting array keys to strings before the remaining checks that assume a string.
- Added an openssl.conf file that enables the legacy provider, in addition to the default, in order to enable the tests to pass in newer OpenSSL versions that even older PHP versions are now being compiled against.

Also provided higher test coverage overall. To accomplish that part:

- Added "symfony/polyfill-ctype" as a runtime dependency, as it can be disabled (while the test tooling does not require it), but is required by many components.
- Made PHPUnit run twice - once with the bare minimum of extensions needed to get it going, and a second time with all extensions that can be enabled for the given PHP version. Zend_Barcode_AllTests in particular benefits of this, as it has both tests that work only if GD is disabled, as well as tests that run only if GD is enabled.
- Moved the PHP extensions from the env into a matrix, and adjusted the set of extensions to be one that the PHP version would support.
- Adjusted the JSON encoder and decoder to explicitly use "UTF-16BE" instead of just "UTF-16", as the mbstring polyfill uses iconv, which in turn aliases "UTF-16" to "UTF-16LE", while the true mbstring extension aliases "UTF-16" to "UTF-16BE". The explicit notation works with both.
- Adjusted the testDisablingTryCommonMagicFilesIgnoresCommonLocations() test to call setMagicFile(false) when the environment is not good, i.e. when fileinfo is not present.
- Added some requires annotations where PDO was assumed to be present.
PHP Deprecated:  urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in Zend/Controller/Router/Route/Module.php on line 264
PHP8.2 - Fix null beeing passed to urlencode
Basic Sendgrid Transport Class
Fix PHPDoc for @methods to ensure static analysers understand it
dochne and others added 29 commits September 28, 2023 00:01
Avoid undefined array key access inside url assembly
…cale

add "array" as allowed type of $value
…($string) must be of type string, array given in ... /Zend/Http/Client/Adapter/Socket.php:362
Updated DocBlocks to return `$this` for fluent interface
Fixes `A non-numeric value encountered` in PhpMath.php
Improving limit method using OVER()
Zend_Http_Client-Adapter_Socket - check transfer-encoding header is a string (and not an array)
Fixes deprecation message when running on php8

`Deprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated i`
…biguityIdentity is TRUE

Previously, _authenticateValidateResult expected a valid identity record to be passed as an argument, leading to an error when AmbiguityIdentity is TRUE but no matching identity records were found. Now, it gracefully handles the condition and sends the same failure message that _authenticateValidateResultSet sends when no matching records are found.
…r-large-text

Fix for very slow chunk processing for larger content in the http res…
Add check in DbTable Authentication Adapter for empty results when AmbiguityIdentity is TRUE
Fix deprecation message in php8 with null param with realpath()
…tions

Fix deprecated usage of string functions in `BaseUrl` helper.
@mattimatti mattimatti merged commit 1cefa67 into qofclubs:master Aug 24, 2024
0 of 7 checks passed
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.