Skip to content

Commit

Permalink
Fix requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 21, 2019
1 parent e1db589 commit 0a581d1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -23,10 +23,13 @@ install:
- wget https://phar.phpunit.de/phpcov.phar -O coverage/bin/phpcov
- chmod +x coverage/bin/phpcov

- wget https://github.com/maglnet/ComposerRequireChecker/releases/download/2.0.0/composer-require-checker.phar

- composer show

script:
- phpdbg -qrr vendor/bin/phpunit --verbose --coverage-php coverage/cov/main.cov
- php composer-require-checker.phar check composer.json --config-file $PWD/composer-require-check.json
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_script:
Expand Down
32 changes: 32 additions & 0 deletions composer-require-check.json
@@ -0,0 +1,32 @@
{
"symbol-whitelist": [
"null",
"true",
"false",
"static",
"self",
"parent",
"array",
"string",
"int",
"float",
"bool",
"iterable",
"callable",
"void",
"object",
"parseDeltaSeconds",
"now",
"parseCacheControlHeader",
"parseDateHeader"
],
"php-core-extensions": [
"Core",
"date",
"pcre",
"Phar",
"Reflection",
"SPL",
"standard"
]
}
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -6,12 +6,14 @@
"php": ">=7.2",
"ext-json": "*",
"ext-filter": "*",
"ext-hash": "*",
"amphp/amp": "^2.4",
"amphp/http": "^1.5",
"amphp/http-client": "^4",
"amphp/cache": "^1.3",
"psr/log": "^1.1",
"kelunik/string": "^1.0"
"kelunik/string": "^1.0",
"amphp/byte-stream": "^1.7"
},
"require-dev": {
"phpunit/phpunit": "^8 | ^7",
Expand Down
1 change: 0 additions & 1 deletion src/Internal/CachedResponse.php
Expand Up @@ -7,7 +7,6 @@
use Amp\Http\Client\Request;
use Amp\Http\Client\Response;
use Amp\Http\Message;
use function Amp\Http\Client\Cache\isFresh;
use function Amp\Http\Client\Cache\now;
use function Amp\Http\Client\Cache\parseCacheControlHeader;
use function Amp\Http\Client\Cache\parseDateHeader;
Expand Down

0 comments on commit 0a581d1

Please sign in to comment.