Skip to content

Commit

Permalink
348 domdocument (#352)
Browse files Browse the repository at this point in the history
* build: upgrade to new domdocument implementation

* feature: DOMDocument CommentIni compatibility

* feature: DOMDocument ComponentExpander compatibility

* feature: DOMDocument DocumentBinder compatibility

* feature: DOMDocument HTMLAttributeBinder compatibility

* feature: DOMDocument ListBinderTest compatibility

* feature: DOMDocument PartialExpander compatibility

* feature: DOMDocument PlaceholderBinder compatibility

* feature: DOMDocument TableBinder compatibility

* feature: DOMDocument TemplateCollection compatibility

* feature: DOMDocument TemplateElement compatibility

* test: 100% coverage

* docs: update examples to match DOMDocument changes

* docs: remove duplicated examples

* refactor: improve static analysis (phpstan level 6)

* build: update deps

* build: use php 8.1

* build: use php 8.1 with composer

* build: remove symlinked dependency

* build: update stable release

* tweak: remove old class reference

* tweak: remove old class reference

* ci: increase memory
  • Loading branch information
g105b authored Jul 1, 2022
1 parent 3f59e12 commit aa9e3df
Show file tree
Hide file tree
Showing 33 changed files with 226 additions and 633 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: php-actions/composer@v6
- name: Composer
uses: php-actions/composer@v6
with:
php_version: '8.1'

- name: Archive build
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
Expand All @@ -42,7 +45,7 @@ jobs:
- name: PHP Unit tests
uses: php-actions/phpunit@v3
with:
php_version: 8.0
php_version: '8.1'
php_extensions: xdebug
configuration: test/phpunit/phpunit.xml
bootstrap: vendor/autoload.php
Expand All @@ -63,5 +66,7 @@ jobs:
- name: PHP Static Analysis
uses: php-actions/phpstan@v3
with:
php_version: '8.1'
memory_limit: '2G'
path: src/
level: 6
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"name": "phpgt/domtemplate",
"description": "Bind dynamic data to reusable HTML components.",
"license": "MIT",

"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-dom": "*",
"phpgt/dom": "^3.0"
"phpgt/dom": "^v4.0.0"
},
"require-dev": {
"phpunit/phpunit": "^v9.5",
"phpstan/phpstan": "^v1.4"
"phpstan/phpstan": "v1.8.0",
"phpunit/phpunit": "v9.5.21"
},

"autoload": {
Expand Down
34 changes: 17 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions examples/bind/01-simple.php

This file was deleted.

124 changes: 0 additions & 124 deletions examples/bind/02-non-trivial.php

This file was deleted.

23 changes: 0 additions & 23 deletions examples/bind/03-bindValue.php

This file was deleted.

23 changes: 0 additions & 23 deletions examples/bind/04-bindKeyValue.php

This file was deleted.

37 changes: 0 additions & 37 deletions examples/bind/05-bindData.php

This file was deleted.

Loading

0 comments on commit aa9e3df

Please sign in to comment.