Skip to content

Commit 4c71b90

Browse files
update bref from v1 to v2 (#10)
* update bref * change supported php versions to match bref
1 parent 5fcd8d1 commit 4c71b90

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.github/workflows/qodana.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
working-directory: ./
5353

5454
- name: 'Qodana Scan'
55-
uses: JetBrains/qodana-action@v2023.2
55+
uses: JetBrains/qodana-action@v2024.1
5656
with:
5757
args: --baseline,qodana.sarif.json
5858
env:

.github/workflows/symfony.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
php:
14-
- '7.4'
14+
# - '7.4'
1515
- '8.0'
1616
- '8.1'
1717
- '8.2'
18+
- '8.3'
1819
composer:
1920
- ''
2021
- '--prefer-lowest'

Bootstrap/service.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@
6060
$service->init();
6161
} catch (Exception $e) {
6262
// error getting service
63-
$lambdaRuntime->failInitialization(sprintf(
64-
"Error initializing function - %s: %s",
65-
get_class($e),
66-
$e->getMessage()
67-
));
63+
$lambdaRuntime->failInitialization($e);
6864
}
6965

7066
while (true) {

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=7.4",
24+
"php": ">=8.0",
2525
"ext-json": "*",
2626
"symfony/dotenv": "^4.4|^5.0",
2727
"symfony/framework-bundle": "^4.4|^5.0",
2828
"symfony/yaml": "^4.4|^5.0",
2929
"sensio/framework-extra-bundle": "^5.0.1",
30-
"bref/bref": "^1.7"
30+
"bref/bref": "^2.1.17"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^8.5.14"
33+
"phpunit/phpunit": "^8.5.14",
34+
"symfony/console": "^4.4|^5.0"
3435
},
3536
"autoload": {
3637
"psr-4": {

qodana.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: "1.0"
2-
linter: jetbrains/qodana-php:2023.1-eap
2+
linter: jetbrains/qodana-php:2024.1
33
profile:
44
name: qodana.recommended
55
include:

0 commit comments

Comments
 (0)