Skip to content

Commit 7574e1d

Browse files
authored
Merge pull request #157 from lepiaf/support-php8
Add support for PHP 8
2 parents e2703ae + 797e936 commit 7574e1d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ matrix:
3333
env: DEPENDENCIES="dunglas/symfony-lock:^4" SYMFONY_DEPRECATIONS_HELPER="2"
3434

3535
- php: 7.3
36+
- php: 8.0
3637

3738
# Latest commit to master
3839
- php: 7.4

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.2",
12+
"php": "^7.2 || ^8.0",
1313
"nikic/php-parser": "^3.0 || ^4.0",
1414
"symfony/finder": "^3.4 || ^4.3 || ^5.0",
1515
"twig/twig": "^2.0 || ^3.0",

src/Model/SourceLocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(string $message, string $path, int $line, array $con
3737
*/
3838
public static function createHere(string $message, array $context = []): self
3939
{
40-
foreach (debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2) as $trace) {
40+
foreach (debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2) as $trace) {
4141
// File is not set if we call from an anonymous context like an array_map function.
4242
if (isset($trace['file'])) {
4343
break;

0 commit comments

Comments
 (0)