Skip to content

Commit

Permalink
Supports PHP 8.0; Updated dev deps; Renamed src is a workarround for …
Browse files Browse the repository at this point in the history
…php/phar/include bug
  • Loading branch information
paranoiq committed Nov 21, 2020
1 parent 943271e commit 48cf779
Show file tree
Hide file tree
Showing 35 changed files with 40 additions and 130 deletions.
121 changes: 0 additions & 121 deletions build.xml

This file was deleted.

6 changes: 5 additions & 1 deletion build/spell-checker.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# directories to search for files
directories:
- build
- src
- source
- tests
- util
- //
Expand All @@ -19,6 +19,7 @@ extensions:

# file name pattern -> list of dictionaries (first matched is used)
dictionariesByFileName:
*spell-checker.neon: skip
*.php: en
*.phpt: en
*.neon: en
Expand All @@ -42,3 +43,6 @@ dictionaryDirectories:
# words, that cannot be parsed by default conventions
wordsParserExceptions:
- PHPUnit

localIgnores:
*composer.json: da sp
3 changes: 3 additions & 0 deletions build/spell-checker/en-custom.dic
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ ln
logoutput
merchantability
metadata
mkdir
msgid
msgstr
multi
Expand All @@ -74,9 +75,11 @@ ORM
param
parsers
passthru
phpcbf
printf
redistributions
regex
rf
ruleset
SAPI
src
Expand Down
40 changes: 32 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,56 @@
"authors": [
{
"name": "Vlasta Neubauer",
"homepage": "http://www.paranoiq.cz"
"homepage": "https://www.paranoiq.cz"
}
],
"require": {
"php": "^7.2.0",
"php": "^7.2|^8.0",
"nette/neon": "~2.4|~3.0",
"symfony/finder": "~3.4|~4.0|~5.0",
"tracy/tracy": "~2.4",
"dogma/dogma": "^0.1.15|^0.2.0"
},
"require-dev": {
"dogma/dogma-dev": "0.1.15"
"dogma/dogma-dev": "0.1.17"
},
"extra": {
"branch-alias": {
"dev-master": "0.3-dev"
}
},
"config": {
"bin-dir": "bin"
},
"autoload": {
"classmap": ["src", "tests"]
"classmap": ["source", "tests"]
},
"bin": [
"spell-checker"
],
"minimum-stability": "alpha"
"scripts": {
"da": "composer dump-autoload",
"build": [
"composer install",
"php -r \"@mkdir('log', 0777, true);\"",
"php -r \"@mkdir('temp/cache', 0777, true);\"",
"rm -rf temp/cache/*"
],
"check": [
"@tests",
"@phpstan",
"@phpcs-setup",
"@phpcs-src",
"@spell-check",
"@phplint"
],
"cs": [
"@phpcs-src",
"@phpcs-tests"
],
"phpcs-src": "sh vendor/bin/phpcs --standard=vendor/dogma/dogma-dev/src/CodeSniffer/ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp source",
"phpcs-tests": "sh vendor/bin/phpcs --standard=vendor/dogma/dogma-dev/src/CodeSniffer/ruleset-tests.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests",
"phpcs-fix": "sh vendor/bin/phpcbf --standard=vendor/dogma/dogma-dev/src/CodeSniffer/ruleset-tests.xml --extensions=php --encoding=utf-8 --tab-width=4 source tests",
"phplint": "sh vendor/bin/parallel-lint source tests",
"phpstan": "sh vendor/bin/phpstan analyse -c build/phpstan.neon -l 5 source",
"spell-check": "php spell-checker.php -c build/spell-checker.neon --checkDictionaryFiles --memoryLimit 1024M --noLogo",
"tests": "sh vendor/bin/tester tests -c tests --colors 1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 48cf779

Please sign in to comment.