1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Clean up md5/sha1 usages, upgrade algos where possible (#12088)

* Clean up md5/sha1 usages, upgrade algos where possible

* Fully qualify PHP_VERSION_ID constant usages

* Fix 7.2 build
This commit is contained in:
Jordi Boggiano 2024-08-21 17:06:42 +02:00 committed by GitHub
parent 556ca06906
commit 8f3fed674b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 64 additions and 58 deletions

View file

@ -36,7 +36,7 @@ class ErrorHandlerTest extends TestCase
*/
public function testErrorHandlerCaptureNotice(): void
{
if (PHP_VERSION_ID >= 80000) {
if (\PHP_VERSION_ID >= 80000) {
self::expectException('\ErrorException');
self::expectExceptionMessage('Undefined array key "baz"');
} else {
@ -54,7 +54,7 @@ class ErrorHandlerTest extends TestCase
*/
public function testErrorHandlerCaptureWarning(): void
{
if (PHP_VERSION_ID >= 80000) {
if (\PHP_VERSION_ID >= 80000) {
self::expectException('TypeError');
self::expectExceptionMessage('array_merge');
} else {