Skip to content

Commit

Permalink
Merge pull request #10 from jakubboucek/jb-update
Browse files Browse the repository at this point in the history
Update to PHP 8.2 & updates
  • Loading branch information
jakubboucek authored Dec 11, 2022
2 parents 0de2c39 + 17f78d4 commit 8e6c417
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@ jobs:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
actions:
- name: PHPStan
run: composer phpstan

- name: Unit tests
run: vendor/bin/tester tests -s -C
versions:
- name: newest
arg: ''
experimental: false

name: ${{ matrix.actions.name }} at PHP ${{ matrix.php }}
- name: lowest
arg: '--prefer-lowest'
experimental: true

name: ${{ matrix.actions.name }} at PHP ${{ matrix.php }} (${{ matrix.versions.name }})
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -53,6 +62,7 @@ jobs:


- name: Install Composer
run: composer install --no-progress
run: composer update --no-progress ${{ matrix.versions.arg }}

- run: ${{ matrix.actions.run }}
continue-on-error: ${{ matrix.versions.experimental }}
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "jakubboucek/legacy-escape",
"description": "Right escape data inserted to HTML, CSS, JS and URL. Substrate of Latte/Latte package.",
"type": "library",
"license": [
"MIT",
"BSD-3-Clause",
"GPL-2.0-only",
"GPL-3.0-only"
],
"type": "library",
"authors": [
{
"name": "Jakub Bouček",
Expand All @@ -20,8 +20,8 @@
},
"require-dev": {
"nette/tester": "^2.4",
"nette/utils": "^3.2.5",
"phpstan/phpstan": "^0.12.98"
"nette/utils": "^3.1",
"phpstan/phpstan": "1.9.2"
},
"suggest": {
"nette/utils": "Allows to safe escape HTML with markup: https://doc.nette.org/en/utils/html-elements"
Expand All @@ -31,11 +31,11 @@
"JakubBoucek\\Escape\\": "src/"
}
},
"config": {
"sort-packages": true
},
"scripts": {
"phpstan": "phpstan analyze src -c phpstan.neon --level 7",
"tester": "tester tests"
},
"config": {
"sort-packages": true
}
}
8 changes: 7 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
parameters:
ignoreErrors:
-
message: '#Instanceof between mixed and Nette\\HtmlStringable will always evaluate to false\.#'
message: '#Instanceof between mixed and Nette\\Utils\\IHtmlString will always evaluate to false\.#'
path: src/Escape.php
count: 2
reportUnmatched: false
-
message: '#Class Nette\\HtmlStringable not found\.#'
path: src/Escape.php
count: 2
reportUnmatched: false

0 comments on commit 8e6c417

Please sign in to comment.