Skip to content

Commit 2a5e310

Browse files
Merge branch '5.4' into 6.0
* 5.4: [Dotenv] Decouple DotenvDumpCommand from FrameworkBundle [Dotenv] Reimplementing symfony/flex' dump-env as a Symfony command [PHPUnitBridge] Fix skipping triggering file override on 5.3 Do not override correct triggering file for return type deprecations [HttpClient] accept headers when CURLE_RECV_ERROR is received before the content Use PHPUnit 9.5 on PHP 8.1 [Serializer] Attributes that extends the serializer`s annotations do not ignore by the serialization process
2 parents 12ba881 + 37a4d73 commit 2a5e310

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DeprecationErrorHandler/Deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct($message, array $trace, $file)
8787
$this->getOriginalFilesStack();
8888
array_splice($this->originalFilesStack, 0, $j, [$this->triggeringFile]);
8989

90-
if (preg_match('/(?|"([^"]++)" that is deprecated|should implement method "(?:static )?([^:]++))/', $message, $m) || preg_match('/^(?:The|Method) "([^":]++)/', $message, $m)) {
90+
if (preg_match('/(?|"([^"]++)" that is deprecated|should implement method "(?:static )?([^:]++))/', $message, $m) || (false === strpos($message, '()" will return') && false === strpos($message, 'native return type declaration') && preg_match('/^(?:The|Method) "([^":]++)/', $message, $m))) {
9191
$this->triggeringFile = (new \ReflectionClass($m[1]))->getFileName();
9292
array_unshift($this->originalFilesStack, $this->triggeringFile);
9393
}

bin/simple-phpunit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
};
9595

9696
if (\PHP_VERSION_ID >= 80000) {
97-
// PHP 8 requires PHPUnit 9.3+
98-
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.4') ?: '9.4';
97+
// PHP 8 requires PHPUnit 9.3+, PHP 8.1 requires PHPUnit 9.5+
98+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.5') ?: '9.5';
9999
} elseif (\PHP_VERSION_ID >= 70200) {
100100
// PHPUnit 8 requires PHP 7.2+
101101
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '8.5') ?: '8.5';

0 commit comments

Comments
 (0)