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", 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;