Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 998d8d2

Browse filesBrowse files
committed
minor #111 Adjustments for PHP CS Fixer 3 (derrabus)
This PR was merged into the 2.1-dev branch. Discussion ---------- Adjustments for PHP CS Fixer 3 This should allow fabbot to analyze this repo again. Commits ------- 5fa5f62 Adjustments for PHP CS Fixer 3
2 parents a125b93 + 5fa5f62 commit 998d8d2
Copy full SHA for 998d8d2

File tree

4 files changed

+7
-5
lines changed
Filter options

4 files changed

+7
-5
lines changed

‎.gitignore

Copy file name to clipboard
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
vendor/
22
composer.lock
33
phpunit.xml
4-
.php_cs.cache
4+
.php-cs-fixer.cache
5+
.php-cs-fixer.php
56
.phpunit.result.cache
67
/Tests/Fixtures/App/var

‎.php_cs.dist renamed to ‎.php-cs-fixer.dist.php

Copy file name to clipboardExpand all lines: .php-cs-fixer.dist.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
return PhpCsFixer\Config::create()
3+
return (new PhpCsFixer\Config())
44
->setRules([
55
'@Symfony' => true,
66
'@Symfony:risky' => true,
@@ -17,8 +17,9 @@
1717
])
1818
->setRiskyAllowed(true)
1919
->setFinder(
20-
PhpCsFixer\Finder::create()
20+
(new PhpCsFixer\Finder())
2121
->in(__DIR__)
22+
->exclude('vendor')
2223
->name('*.php')
2324
)
2425
;

‎Tests/Factory/PsrHttpFactoryTest.php

Copy file name to clipboardExpand all lines: Tests/Factory/PsrHttpFactoryTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Bridge\PsrHttpMessage\Tests\Factory;
1313

14-
use PHPUnit\Framework\TestCase;
1514
use Nyholm\Psr7\Factory\Psr17Factory;
15+
use PHPUnit\Framework\TestCase;
1616
use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory;
1717
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
1818
use Symfony\Component\HttpFoundation\BinaryFileResponse;

‎Tests/Functional/CovertTest.php

Copy file name to clipboardExpand all lines: Tests/Functional/CovertTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testConvertRequestMultipleTimes($request, $firstFactory, $second
8585
$this->assertEquals((array) $request->getParsedBody(), (array) $finalRequest->getParsedBody());
8686
$this->assertEquals($request->getQueryParams(), $finalRequest->getQueryParams());
8787
// PSR7 does not define a "withServerParams" so this is impossible to implement without knowing the PSR7 implementation.
88-
//$this->assertEquals($request->getServerParams(), $finalRequest->getServerParams());
88+
// $this->assertEquals($request->getServerParams(), $finalRequest->getServerParams());
8989
$this->assertEquals($request->getUploadedFiles(), $finalRequest->getUploadedFiles());
9090
$this->assertEquals($request->getMethod(), $finalRequest->getMethod());
9191
$this->assertEquals($request->getRequestTarget(), $finalRequest->getRequestTarget());

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.