Skip to content

Commit

Permalink
Fix PHP 8.2 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary authored Jan 28, 2023
1 parent fbf5880 commit a1c3d61
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests
on: [push, pull_request]
jobs:
php:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions:
- '5.6'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json
coverage: xdebug
- name: Install Composer dependencies
run: composer update -n
- name: Run Tests
run: |
vendor/bin/simple-phpunit
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class PVar extends Expression
public function __construct($name)
{
if (empty($name) || ! self::isPredefinedVariable($name)) {
throw new InvalidArgumentException("Invalid predefined variable name: '${name}'");
throw new InvalidArgumentException("Invalid predefined variable name: '{$name}'");
}

parent::__construct($name);
Expand Down

0 comments on commit a1c3d61

Please sign in to comment.