Skip to content

Commit 5e6910a

Browse files
committed
#10 upgrade to php 8
1 parent fa48dc5 commit 5e6910a

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
php: ['7.4']
17+
php: ['8.0']
1818

1919
name: PHP ${{ matrix.php }} Test on ${{ matrix.os }}
2020
steps:

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"description": "Skeleton project to quickly get started with running PHP on AWS Lambda",
44
"license": "MIT",
55
"type": "project",
6+
"config": {
7+
"platform": {
8+
"php": "8.0"
9+
}
10+
},
611
"require": {
7-
"php": "^7.4",
12+
"php": "^8.0",
813
"ext-json": "*",
914
"bref/bref": "^1.1.4",
1015
"bref/logger": "^1.0.0",

composer.lock

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

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
1010
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
1111
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
12-
bref-php-74:
13-
image: bref/php-74
12+
bref-php:
13+
image: bref/php-80
1414
volumes:
1515
- $PWD/:/var/task

serverless.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ functions:
2424
memorySize: 128
2525
timeout: 5
2626
layers:
27-
- ${bref:layer.php-74}
27+
- ${bref:layer.php-80}
2828
events:
2929
- schedule:
3030
rate: cron(0 16 * * ? *)
@@ -35,7 +35,7 @@ functions:
3535
memorySize: 128
3636
timeout: 5
3737
layers:
38-
- ${bref:layer.php-74}
38+
- ${bref:layer.php-80}
3939
events:
4040
- sns:
4141
arn: !Ref snsTriggerFunction
@@ -46,7 +46,7 @@ functions:
4646
memorySize: 128
4747
timeout: 5
4848
layers:
49-
- ${bref:layer.php-74-fpm}
49+
- ${bref:layer.php-80-fpm}
5050
events:
5151
- httpApi:
5252
method: GET

0 commit comments

Comments
 (0)