Skip to content

Commit

Permalink
Merge pull request #329 from thephpleague/fix-dynamic-property-deprec…
Browse files Browse the repository at this point in the history
…ation

Fix dynamic property deprecations / Upgrade php min versions
  • Loading branch information
ragboyjr authored Nov 2, 2024
2 parents 34347cb + 5c363c3 commit 12ee651
Show file tree
Hide file tree
Showing 8 changed files with 1,914 additions and 146 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,26 @@ on: [push]

jobs:
run:
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2']
phpunit-versions: ['9.5']
php-versions: ["8.2", "8.3", "8.4"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Validate Composer
run: composer validate
- name: Install Composer Deps
run: composer install
- name: Run Tests
run: phpunit --testdox --coverage-text --coverage-clover=coverage.clover
- name: Validate Composer
run: composer validate
- name: Install Composer Deps
run: composer install
- name: Run Tests
run: composer test
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
build
composer.lock
vendor
doc/public
doc/data/versions.json
/vendor
/doc/public
/doc/data/versions.json
/doc/.hugo_build.lock
.generated
.phpunit.result.cache
.phpunit.cache
96 changes: 48 additions & 48 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"name": "league/plates",
"description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.",
"keywords": [
"league",
"package",
"templating",
"templates",
"views"
],
"homepage": "https://platesphp.com",
"license": "MIT",
"authors" : [
{
"name": "Jonathan Reinink",
"email": "[email protected]",
"role": "Developer"
},
{
"name": "RJ Garcia",
"email": "[email protected]",
"role": "Developer"
}
],
"require" : {
"php": "^7.1|^8.0"
"name": "league/plates",
"description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.",
"keywords": [
"league",
"package",
"templating",
"templates",
"views"
],
"homepage": "https://platesphp.com",
"license": "MIT",
"authors": [
{
"name": "Jonathan Reinink",
"email": "[email protected]",
"role": "Developer"
},
"require-dev": {
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
"psr-4": {
"League\\Plates\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"League\\Plates\\Tests\\": "tests"
}
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
}
},
"scripts": {
"test": "phpunit --testdox --colors=always",
"docs": "hugo -s doc server"
{
"name": "RJ Garcia",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": "^8.0"
},
"require-dev": {
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^11.4",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
"psr-4": {
"League\\Plates\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"League\\Plates\\Tests\\": "tests"
}
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
}
},
"scripts": {
"test": "phpunit --testdox --colors=always",
"docs": "hugo -s doc server"
}
}
Loading

0 comments on commit 12ee651

Please sign in to comment.