Skip to content

Commit 4844d21

Browse files
Remove calls to no-op functions, deprecated in PHP 8.5
1 parent e5772a9 commit 4844d21

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ protected function setUp(): void
3636
// Normalize intl. configuration settings.
3737
if (\extension_loaded('intl')) {
3838
$this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);
39-
$this->initialTestCaseErrorLevel = ini_set('intl.error_level', 0);
4039
}
4140

4241
// Since we test against "de_AT", we need the full implementation
@@ -55,7 +54,6 @@ protected function tearDown(): void
5554

5655
if (\extension_loaded('intl')) {
5756
ini_set('intl.use_exceptions', $this->initialTestCaseUseException);
58-
ini_set('intl.error_level', $this->initialTestCaseErrorLevel);
5957
}
6058
}
6159

@@ -346,6 +344,7 @@ public function testReverseTransformFiveDigitYearsWithTimestamp()
346344

347345
/**
348346
* @requires extension intl
347+
* @requires PHP < 8.5
349348
*/
350349
public function testReverseTransformWrapsIntlErrorsWithErrorLevel()
351350
{
@@ -378,6 +377,7 @@ public function testReverseTransformWrapsIntlErrorsWithExceptions()
378377

379378
/**
380379
* @requires extension intl
380+
* @requires PHP < 8.5
381381
*/
382382
public function testReverseTransformWrapsIntlErrorsWithExceptionsAndErrorLevel()
383383
{

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ class NumberToLocalizedStringTransformerTest extends TestCase
2121
private string $defaultLocale;
2222

2323
private $initialTestCaseUseException;
24-
private $initialTestCaseErrorLevel;
2524

2625
protected function setUp(): void
2726
{
2827
// Normalize intl. configuration settings.
2928
if (\extension_loaded('intl')) {
3029
$this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);
31-
$this->initialTestCaseErrorLevel = ini_set('intl.error_level', 0);
3230
}
3331

3432
$this->defaultLocale = \Locale::getDefault();
@@ -41,7 +39,6 @@ protected function tearDown(): void
4139

4240
if (\extension_loaded('intl')) {
4341
ini_set('intl.use_exceptions', $this->initialTestCaseUseException);
44-
ini_set('intl.error_level', $this->initialTestCaseErrorLevel);
4542
}
4643
}
4744

@@ -664,6 +661,7 @@ public function testReverseTransformENotation($output, $input)
664661

665662
/**
666663
* @requires extension intl
664+
* @requires PHP < 8.5
667665
*/
668666
public function testReverseTransformWrapsIntlErrorsWithErrorLevel()
669667
{
@@ -696,6 +694,7 @@ public function testReverseTransformWrapsIntlErrorsWithExceptions()
696694

697695
/**
698696
* @requires extension intl
697+
* @requires PHP < 8.5
699698
*/
700699
public function testReverseTransformWrapsIntlErrorsWithExceptionsAndErrorLevel()
701700
{

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ class PercentToLocalizedStringTransformerTest extends TestCase
2121
private string $defaultLocale;
2222

2323
private $initialTestCaseUseException;
24-
private $initialTestCaseErrorLevel;
2524

2625
protected function setUp(): void
2726
{
2827
// Normalize intl. configuration settings.
2928
if (\extension_loaded('intl')) {
3029
$this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0);
31-
$this->initialTestCaseErrorLevel = ini_set('intl.error_level', 0);
3230
}
3331

3432
$this->defaultLocale = \Locale::getDefault();
@@ -41,7 +39,6 @@ protected function tearDown(): void
4139

4240
if (\extension_loaded('intl')) {
4341
ini_set('intl.use_exceptions', $this->initialTestCaseUseException);
44-
ini_set('intl.error_level', $this->initialTestCaseErrorLevel);
4542
}
4643
}
4744

@@ -492,6 +489,7 @@ public function testReverseTransformForHtml5FormatWithScale()
492489

493490
/**
494491
* @requires extension intl
492+
* @requires PHP < 8.5
495493
*/
496494
public function testReverseTransformWrapsIntlErrorsWithErrorLevel()
497495
{
@@ -524,6 +522,7 @@ public function testReverseTransformWrapsIntlErrorsWithExceptions()
524522

525523
/**
526524
* @requires extension intl
525+
* @requires PHP < 8.5
527526
*/
528527
public function testReverseTransformWrapsIntlErrorsWithExceptionsAndErrorLevel()
529528
{

src/Symfony/Component/HttpClient/Internal/CurlClientState.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public function reset(): void
8383
foreach ($this->pushedResponses as $url => $response) {
8484
$this->logger?->debug(\sprintf('Unused pushed response: "%s"', $url));
8585
curl_multi_remove_handle($this->handle, $response->handle);
86-
curl_close($response->handle);
8786
}
8887

8988
$this->pushedResponses = [];

src/Symfony/Component/Validator/Constraints/ImageValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ public function validate(mixed $value, Constraint $constraint)
230230

231231
return;
232232
}
233-
234-
imagedestroy($resource);
235233
}
236234
}
237235
}

0 commit comments

Comments
 (0)