Skip to content

Commit a1c3d61

Browse files
Fix PHP 8.2 deprecation warnings
1 parent fbf5880 commit a1c3d61

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

.github/workflows/test.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
jobs:
4+
php:
5+
name: PHP ${{ matrix.php-versions }}
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
php-versions:
11+
- '5.6'
12+
- '7.4'
13+
- '8.0'
14+
- '8.1'
15+
- '8.2'
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Setup PHP, with composer and extensions
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
extensions: json
24+
coverage: xdebug
25+
- name: Install Composer dependencies
26+
run: composer update -n
27+
- name: Run Tests
28+
run: |
29+
vendor/bin/simple-phpunit

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Transformation/Expression/Operand/Variable/Predefined/PVar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class PVar extends Expression
9696
public function __construct($name)
9797
{
9898
if (empty($name) || ! self::isPredefinedVariable($name)) {
99-
throw new InvalidArgumentException("Invalid predefined variable name: '${name}'");
99+
throw new InvalidArgumentException("Invalid predefined variable name: '{$name}'");
100100
}
101101

102102
parent::__construct($name);

0 commit comments

Comments
 (0)