Skip to content

Commit 12ee651

Browse files
authored
Merge pull request #329 from thephpleague/fix-dynamic-property-deprecation
Fix dynamic property deprecations / Upgrade php min versions
2 parents 34347cb + 5c363c3 commit 12ee651

File tree

8 files changed

+1914
-146
lines changed

8 files changed

+1914
-146
lines changed

.github/workflows/php.yml

+18-21
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,26 @@ on: [push]
44

55
jobs:
66
run:
7-
runs-on: 'ubuntu-latest'
7+
runs-on: "ubuntu-latest"
88
strategy:
99
matrix:
10-
php-versions: ['7.4', '8.0', '8.1', '8.2']
11-
phpunit-versions: ['9.5']
10+
php-versions: ["8.2", "8.3", "8.4"]
1211
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
12+
- name: Checkout
13+
uses: actions/checkout@v4
1514

16-
- name: Setup PHP
17-
uses: shivammathur/setup-php@v2
18-
with:
19-
php-version: ${{ matrix.php-versions }}
20-
extensions: mbstring, intl
21-
ini-values: post_max_size=256M, max_execution_time=180
22-
coverage: xdebug
23-
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: ${{ matrix.php-versions }}
19+
extensions: mbstring, intl
20+
ini-values: post_max_size=256M, max_execution_time=180
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
2623

27-
- name: Validate Composer
28-
run: composer validate
29-
- name: Install Composer Deps
30-
run: composer install
31-
- name: Run Tests
32-
run: phpunit --testdox --coverage-text --coverage-clover=coverage.clover
24+
- name: Validate Composer
25+
run: composer validate
26+
- name: Install Composer Deps
27+
run: composer install
28+
- name: Run Tests
29+
run: composer test

.gitignore

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
build
2-
composer.lock
3-
vendor
4-
doc/public
5-
doc/data/versions.json
2+
/vendor
3+
/doc/public
4+
/doc/data/versions.json
5+
/doc/.hugo_build.lock
66
.generated
77
.phpunit.result.cache
8+
.phpunit.cache

composer.json

+48-48
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{
2-
"name": "league/plates",
3-
"description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.",
4-
"keywords": [
5-
"league",
6-
"package",
7-
"templating",
8-
"templates",
9-
"views"
10-
],
11-
"homepage": "https://platesphp.com",
12-
"license": "MIT",
13-
"authors" : [
14-
{
15-
"name": "Jonathan Reinink",
16-
"email": "[email protected]",
17-
"role": "Developer"
18-
},
19-
{
20-
"name": "RJ Garcia",
21-
"email": "[email protected]",
22-
"role": "Developer"
23-
}
24-
],
25-
"require" : {
26-
"php": "^7.1|^8.0"
2+
"name": "league/plates",
3+
"description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.",
4+
"keywords": [
5+
"league",
6+
"package",
7+
"templating",
8+
"templates",
9+
"views"
10+
],
11+
"homepage": "https://platesphp.com",
12+
"license": "MIT",
13+
"authors": [
14+
{
15+
"name": "Jonathan Reinink",
16+
"email": "[email protected]",
17+
"role": "Developer"
2718
},
28-
"require-dev": {
29-
"mikey179/vfsstream": "^1.6",
30-
"phpunit/phpunit": "^9.5",
31-
"squizlabs/php_codesniffer": "^3.5"
32-
},
33-
"autoload": {
34-
"psr-4": {
35-
"League\\Plates\\": "src"
36-
}
37-
},
38-
"autoload-dev": {
39-
"psr-4": {
40-
"League\\Plates\\Tests\\": "tests"
41-
}
42-
},
43-
"extra": {
44-
"branch-alias": {
45-
"dev-master": "3.0-dev"
46-
}
47-
},
48-
"scripts": {
49-
"test": "phpunit --testdox --colors=always",
50-
"docs": "hugo -s doc server"
19+
{
20+
"name": "RJ Garcia",
21+
"email": "[email protected]",
22+
"role": "Developer"
23+
}
24+
],
25+
"require": {
26+
"php": "^8.0"
27+
},
28+
"require-dev": {
29+
"mikey179/vfsstream": "^1.6",
30+
"phpunit/phpunit": "^11.4",
31+
"squizlabs/php_codesniffer": "^3.5"
32+
},
33+
"autoload": {
34+
"psr-4": {
35+
"League\\Plates\\": "src"
36+
}
37+
},
38+
"autoload-dev": {
39+
"psr-4": {
40+
"League\\Plates\\Tests\\": "tests"
41+
}
42+
},
43+
"extra": {
44+
"branch-alias": {
45+
"dev-master": "3.0-dev"
5146
}
47+
},
48+
"scripts": {
49+
"test": "phpunit --testdox --colors=always",
50+
"docs": "hugo -s doc server"
51+
}
5252
}

0 commit comments

Comments
 (0)