Skip to content

Commit 5242919

Browse files
authored
Merge pull request #109 from BinaryStudioAcademy/feature/upgrade_php_version
Upgrade PHP version to 7.3
2 parents 182ba2a + e50bfcd commit 5242919

File tree

8 files changed

+24
-19
lines changed

8 files changed

+24
-19
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
language: php
77

88
php:
9-
- 7.2
9+
- 7.3
1010

1111
cache:
1212
directories:
@@ -15,13 +15,13 @@ cache:
1515
before_install:
1616
- cd $TRAVIS_BUILD_DIR/backend
1717
- composer validate
18-
- mysql -e 'CREATE DATABASE thread'
18+
- mysql -e 'CREATE DATABASE thread'
1919

2020
install:
2121
- composer install --no-interaction --prefer-source
2222

2323
before_script:
24-
- cp .env.travis .env
24+
- cp .env.travis .env
2525
- php artisan migrate --force
2626

2727
script:
@@ -30,4 +30,4 @@ script:
3030
after_success:
3131
- bash <(curl -s https://codecov.io/bash)
3232

33-
33+

backend/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.1.3",
11+
"php": "^7.3.17",
1212
"ext-bcmath": "*",
1313
"ext-mbstring": "*",
1414
"barryvdh/laravel-cors": "^0.11.3",

backend/composer.lock

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/docker/php-fpm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-fpm-stretch
1+
FROM php:7.3-fpm-stretch
22

33
# Fix debconf warnings upon build
44
ARG DEBIAN_FRONTEND=noninteractive
@@ -26,7 +26,7 @@ RUN apt-get update \
2626

2727
RUN pecl channel-update pecl.php.net \
2828
&& pecl install redis-4.3.0 \
29-
&& pecl install xdebug-2.6.1 \
29+
&& pecl install xdebug \
3030
&& docker-php-ext-enable redis xdebug
3131

3232
COPY --from=composer /usr/bin/composer /usr/bin/composer

backend/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Technologies
44

5-
* PHP 7.2 || 7.3
5+
* PHP 7.3
66
* [Laravel 5.8](https://laravel.com)
77
* [Docker](https://www.docker.com/)
88
* [Docker-compose](https://docs.docker.com/compose/)

backend/tests/Feature/Api/V1/CommentApiTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Feature\Api;
5+
namespace Tests\Feature\Api\V1;
66

77
use App\Entity\Comment;
88
use App\Entity\Tweet;
9+
use Tests\Feature\Api\ApiTestCase;
910

1011
final class CommentApiTest extends ApiTestCase
1112
{

backend/tests/Feature/Api/V1/TweetApiTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Feature\Api;
5+
namespace Tests\Feature\Api\V1;
66

77
use App\Entity\Tweet;
88
use App\Entity\User;
9+
use Tests\Feature\Api\ApiTestCase;
910

1011
final class TweetApiTest extends ApiTestCase
1112
{

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Backend:
1111

12-
* PHP 7.2 || 7.3
12+
* PHP 7.3
1313
* [Laravel 5.8](https://laravel.com)
1414
* [Docker](https://www.docker.com/)
1515
* [Docker-compose](https://docs.docker.com/compose/)

0 commit comments

Comments
 (0)