Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests on lowest deps also #123

Merged
merged 8 commits into from Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -20,6 +20,11 @@ jobs:
- "composer test:phpunit -- --verbose"
# - "composer test:cs -- -s"
- "composer test:phpstan -- --ansi --memory-limit=1G --no-progress"
- name: "With lowest deps"
php: "7.4"
install:
- "composer update --no-interaction --prefer-lowest"
- "composer update --no-interaction --with-all-dependencies szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset 'php-stubs/wordpress-stubs:^6.1'"

cache:
directories:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -21,8 +21,8 @@
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"php-parallel-lint/php-parallel-lint": "^1.1",
"phpstan/phpstan-strict-rules": "^1.2",
"phpunit/phpunit": "^8 || ^9",
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
"phpunit/phpunit": "^8.0 || ^9.0",
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6.1"
},
"autoload-dev": {
"classmap": [
Expand Down
2 changes: 1 addition & 1 deletion src/WpThemeGetDynamicMethodReturnTypeExtension.php
Expand Up @@ -28,7 +28,7 @@ class WpThemeGetDynamicMethodReturnTypeExtension implements \PHPStan\Type\Dynami
*
* @var list<string>
*/
private static $headers = [
protected static $headers = [
'Name',
'ThemeURI',
'Description',
Expand Down