From 5434642af54d9c503a8bb1bab42a94c8b1f4542f Mon Sep 17 00:00:00 2001 From: Thierry T <1940947+lepiaf@users.noreply.github.com> Date: Tue, 8 Dec 2020 17:40:14 +0100 Subject: [PATCH 1/3] Add support for PHP 8 --- .travis.yml | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c4f2ae..f118f76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,7 @@ matrix: env: DEPENDENCIES="dunglas/symfony-lock:^4" SYMFONY_DEPRECATIONS_HELPER="2" - php: 7.3 + - php: 8.0 # Latest commit to master - php: 7.4 diff --git a/composer.json b/composer.json index 6ba3bf1..84f9b60 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } ], "require": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "nikic/php-parser": "^3.0 || ^4.0", "symfony/finder": "^3.4 || ^4.3 || ^5.0", "twig/twig": "^2.0 || ^3.0", From 73b58c033496f51976860a83984873c21f1bb616 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Thu, 25 Mar 2021 10:41:55 +0200 Subject: [PATCH 2/3] Trigger a new build From 797e936bb3feda1f3c7b53d929b06bea74392d9c Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Thu, 25 Mar 2021 10:46:23 +0200 Subject: [PATCH 3/3] Add backslash for DEBUG_BACKTRACE_PROVIDE_OBJECT --- src/Model/SourceLocation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/SourceLocation.php b/src/Model/SourceLocation.php index bf715e5..39743bd 100644 --- a/src/Model/SourceLocation.php +++ b/src/Model/SourceLocation.php @@ -37,7 +37,7 @@ public function __construct(string $message, string $path, int $line, array $con */ public static function createHere(string $message, array $context = []): self { - foreach (debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2) as $trace) { + foreach (debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2) as $trace) { // File is not set if we call from an anonymous context like an array_map function. if (isset($trace['file'])) { break;