Skip to content

Commit 28c64b1

Browse files
committed
Craft 4 compatibility
1 parent da95acf commit 28c64b1

8 files changed

Lines changed: 3601 additions & 1821 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
name: ECS
1212
uses: craftcms/.github/.github/workflows/ecs.yml@v1
1313
with:
14-
php_version: '7.2'
14+
php_version: '8.0'
1515
phpstan:
1616
name: PHPStan
1717
uses: craftcms/.github/.github/workflows/phpstan.yml@v1
1818
with:
19-
php_version: '7.2'
19+
php_version: '8.0'
2020
notify-slack:
2121
name: Notify Slack
2222
needs: [ ecs, phpstan ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It’s powered by Phil Sturgeon’s excellent [Fractal](http://fractal.thephplea
77

88
## Requirements
99

10-
This plugin requires Craft CMS 3.6 or later.
10+
This plugin requires Craft CMS 4.0 or later.
1111

1212

1313
## Installation

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "craftcms/element-api",
33
"description": "Create a JSON API for your elements in Craft",
4-
"version": "2.8.5",
54
"type": "craft-plugin",
65
"keywords": [
76
"api",
@@ -27,12 +26,13 @@
2726
"minimum-stability": "dev",
2827
"prefer-stable": true,
2928
"require": {
30-
"craftcms/cms": "^3.6.0",
29+
"craftcms/cms": "^4.0.0-RC3",
3130
"league/fractal": "^0.18.0"
3231
},
3332
"require-dev": {
3433
"craftcms/ecs": "dev-main",
35-
"craftcms/phpstan": "dev-main"
34+
"craftcms/phpstan": "dev-main",
35+
"craftcms/rector": "dev-main"
3636
},
3737
"autoload": {
3838
"psr-4": {
@@ -51,7 +51,7 @@
5151
},
5252
"config": {
5353
"platform": {
54-
"php": "7.2.5"
54+
"php": "8.0.2"
5555
},
5656
"allow-plugins": {
5757
"yiisoft/yii2-composer": true,

0 commit comments

Comments
 (0)