-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was squashed before being merged into the 2.1.x-dev branch. Discussion ---------- Allow php8 Finally, allow php8! Commits ------- 8fd414c get back simple-phpunit 99f802e Update phpunit.xml.dist 03c7ac4 fix missing test kernel var 7c59028 Allow php8 step 3 88b9a4f Merge remote-tracking branch 'upstream/master' into allow_8.0 912cea7 Allow php8 step 2 10aab91 Allow php8
- Loading branch information
Showing
20 changed files
with
223 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: ~ | ||
push: ~ | ||
|
||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-20.04 | ||
name: PHPStan | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: PHPStan | ||
uses: docker://oskarstark/phpstan-ga | ||
env: | ||
REQUIRE_DEV: true | ||
with: | ||
args: analyse | ||
cs-fixer: | ||
runs-on: ubuntu-20.04 | ||
name: PHP-CS-Fixer | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Fix CS | ||
uses: docker://oskarstark/php-cs-fixer-ga | ||
tests: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
php: | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
include: | ||
- description: 'Symfony 4.4' | ||
php: '7.3' | ||
composer_option: '--prefer-lowest' | ||
- description: 'Symfony 5.3' | ||
php: '7.4' | ||
symfony: 5.3.* | ||
- description: 'Symfony 6.0' | ||
php: '8.0' | ||
symfony: 6.0.*-dev | ||
name: PHP ${{ matrix.php }} tests (${{ matrix.description }}) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: ${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
- run: | | ||
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json; | ||
if: contains(matrix.symfony, '-dev') | ||
- run: composer config minimum-stability dev | ||
- run: composer config prefer-stable true | ||
if: matrix.symfony | ||
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }} | ||
- run: vendor/bin/simple-phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
// see https://github.com/FriendsOfPHP/PHP-CS-Fixer | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in([__DIR__.'/src', __DIR__.'/tests']) | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'@PHP71Migration:risky' => true, | ||
'@PHPUnit75Migration:risky' => true, | ||
'ordered_imports' => true, | ||
'declare_strict_types' => false, | ||
'native_function_invocation' => ['include' => ['@all']], | ||
'final_class' => true, | ||
'php_unit_mock_short_will_return' => true, | ||
]) | ||
->setFinder($finder) | ||
; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#has parameter \\$parameters with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Helper/DisqusHelper.php | ||
- | ||
message: "#has parameter \\$configs with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/DependencyInjection/KnpDisqusExtension.php | ||
- | ||
message: "#Symfony\\Component\\Config\\Definition\\ConfigurationInterface|null given\\.$#" | ||
count: 1 | ||
path: src/DependencyInjection/KnpDisqusExtension.php | ||
- | ||
message: "#Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition::children\\(\\)\\.$#" | ||
count: 1 | ||
path: src/DependencyInjection/Configuration.php | ||
- | ||
message: "#return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Client/DisqusClientInterface.php | ||
- | ||
message: "#has parameter \\$options with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Client/DisqusClientInterface.php | ||
- | ||
message: "#type has no value type specified in iterable type array\\.$#" | ||
count: 4 | ||
path: src/Client/DisqusClient.php | ||
- | ||
message: "#has parameter (\\$options|\\$parameters) with no value type specified in iterable type array\\.$#" | ||
count: 3 | ||
path: src/Client/DisqusClient.php | ||
- | ||
message: "#values of function sprintf expects bool\\\\|float\\\\|int\\\\|string\\\\|null, array\\\\|string given\\.$#" | ||
count: 1 | ||
path: src/Client/DisqusClient.php | ||
- | ||
message: "#return type has no value type specified in iterable type array\\.$#" | ||
count: 3 | ||
path: src/Model/DisqusConfig.php | ||
- | ||
message: "#\\$string of function base64_encode expects string, string|false given\\.$#" | ||
count: 1 | ||
path: src/Model/DisqusConfig.php | ||
- | ||
message: "#has parameter \\$(content|parameters|options) with no value type specified in iterable type array\\.$#" | ||
count: 4 | ||
path: src/Model/DisqusConfig.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
level: 8 | ||
paths: | ||
- src | ||
includes: | ||
- phpstan-baseline.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.