diff --git a/.gitignore b/.gitignore index 2e27c436..70efea11 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.phpunit.result.cache /.php_cs.cache /behat.yml /build/ diff --git a/.php_cs.dist b/.php_cs.dist index 8c7bcc22..b7475fd4 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -7,9 +7,11 @@ $finder = PhpCsFixer\Finder::create() ; return PhpCsFixer\Config::create() + ->setRiskyAllowed(true) ->setRules([ '@Symfony' => true, 'array_syntax' => ['syntax' => 'short'], + 'declare_strict_types' => true, 'visibility_required' => [ 'elements' => [ 'const', diff --git a/src/ClientFactory/AutoDiscoveryFactory.php b/src/ClientFactory/AutoDiscoveryFactory.php index 78b64f78..1c2bf5b9 100644 --- a/src/ClientFactory/AutoDiscoveryFactory.php +++ b/src/ClientFactory/AutoDiscoveryFactory.php @@ -1,5 +1,7 @@ diff --git a/tests/Functional/ProfilerTest.php b/tests/Functional/ProfilerTest.php index d07f0044..92cead83 100644 --- a/tests/Functional/ProfilerTest.php +++ b/tests/Functional/ProfilerTest.php @@ -1,5 +1,7 @@ diff --git a/tests/Unit/Discovery/ConfiguredClientsStrategyTest.php b/tests/Unit/Discovery/ConfiguredClientsStrategyTest.php index 2efeff12..ed3f44a7 100644 --- a/tests/Unit/Discovery/ConfiguredClientsStrategyTest.php +++ b/tests/Unit/Discovery/ConfiguredClientsStrategyTest.php @@ -1,5 +1,7 @@