From f87852bb54f197d987270052b5d1105c0bf4f4f0 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 31 Jan 2022 01:22:20 +1100 Subject: [PATCH] PHP 8 support (#52) * Refactor travis file a bit, add php 8 * Add php 8 to composer * Rookie mistake on min version * Update faker repo --- .travis.yml | 17 ++++++----------- composer.json | 4 ++-- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index d48b73c..010e621 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,16 @@ +dist: bionic language: php -matrix: - fast_finish: true - include: - - php: 7.4 - env: LARAVEL_VERSION=8.* -# - php: 8.0 -# env: LARAVEL_VERSION=8.* - -sudo: false - -dist: xenial +php: + - 7.4 + - 8.0 env: global: - setup=basic - xdebug=false + jobs: + - LARAVEL_VERSION=8.* cache: directories: diff --git a/composer.json b/composer.json index 70392df..02a1984 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^7.3", + "php": "^7.4|^8.0", "api-ecosystem-for-laravel/dingo-api": "^3.1", "php-open-source-saver/jwt-auth": "^1.4", "illuminate/support": "^8.0", @@ -19,7 +19,7 @@ "require-dev": { "ext-json": "*", "beyondcode/laravel-dump-server": "^1.6", - "fzaninotto/faker": "^1.8", + "fakerphp/faker": "^1.18", "mockery/mockery": "^1.4", "nunomaduro/collision": "^4.2", "phpunit/phpunit": "^9",