8000 Merge branch '2.8' into 3.2 · symfony/symfony@39b0515 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39b0515

Browse files
Merge branch '2.8' into 3.2
* 2.8: update phpunit-bridge cache-id respect optional error handler arguments [Intl] Fix bin/common.php PHP7 compatibility
2 parents 455b09b + 7a792eb commit 39b0515

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4-
// Cache-Id: https://github.com/symfony/phpunit-bridge/commit/2a45e94c3cde63d8cdfa729e51b80f85b1ab37f6
4+
// Cache-Id: https://github.com/symfony/phpunit-bridge/commit/29fa7b8196870591f35e1554dd69def482e01fb2
55

66
if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
77
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function register($mode = 0)
6767
'legacy' => array(),
6868
'other' => array(),
6969
);
70-
$deprecationHandler = function ($type, $msg, $file, $line, $context) use (&$deprecations, $getMode) {
70+
$deprecationHandler = function ($type, $msg, $file, $line, $context = array()) use (&$deprecations, $getMode) {
7171
$mode = $getMode();
7272
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) || DeprecationErrorHandler::MODE_DISABLED === $mode) {
7373
return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);

src/Symfony/Component/Intl/Resources/bin/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function get_icu_version_from_genrb($genrb)
6868
return $matches[1];
6969
}
7070

71-
set_exception_handler(function (\Exception $exception) {
71+
set_exception_handler(function (\Throwable $exception) {
7272
echo "\n";
7373

7474
$cause = $exception;

0 commit comments

Comments
 (0)
0