Skip to content

Commit

Permalink
[CS] Update PHP-CS-Fixer to 2.15.9 in order to support Composer v2 (#…
Browse files Browse the repository at this point in the history
…3079)

* [CS] Update PHP-CS-Fixer to 2.15.9 in order to support Composer v2

Closes #3075

* Force composer root version with solr to make sure to install latests version

Workaround for 1.13 branch, AFAIK not to be ported to newer branches.
  • Loading branch information
andrerom authored Nov 13, 2020
1 parent daa76b8 commit 1f4cb2a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ return PhpCsFixer\Config::create()
'php_unit_construct' => false,
'standardize_increment' => false,
'fopen_flags' => false,
// Rules changed between php-cs-fixer 2.15.3 and 2.15.9 that we don't care to adapt 6.13 for at this point due to conflicts
'no_superfluous_phpdoc_tags' => false,
'ordered_imports' => false,
'phpdoc_trim' => false,
'phpdoc_trim_consecutive_blank_line_separation' => false,
'function_to_constant' => false,
])
->setRiskyAllowed(true)
->setFinder(
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ matrix:
env: TEST_CONFIG="phpunit-integration-legacy.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/testdb"
# 7.0
- php: 7.0
env: SOLR_VERSION="6.4.2" TEST_CONFIG="phpunit-integration-legacy-solr.xml" CUSTOM_CACHE_POOL="singleredis" CORES_SETUP="shared" SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/custom-fields-types.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml"
env: COMPOSER_ROOT_VERSION=6.13.x-dev SOLR_VERSION="6.4.2" TEST_CONFIG="phpunit-integration-legacy-solr.xml" CUSTOM_CACHE_POOL="singleredis" CORES_SETUP="shared" SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/custom-fields-types.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml"
# 7.1
- php: 7.1
env: PHP_IMAGE=ezsystems/php:7.1-v1 BEHAT_OPTS="--profile=core --tags=~@broken" RUN_INSTALL=1 SYMFONY_ENV=behat SYMFONY_DEBUG=1 COMPOSER_MEMORY_LIMIT=-1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"twig/twig": "~1.35|~2.4"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "2.15.3",
"friendsofphp/php-cs-fixer": "2.15.9",
"phpunit/phpunit": "^5.7",
"matthiasnoback/symfony-dependency-injection-test": "~1.0",
"symfony/assetic-bundle": "~2.8.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpFoundation\Request;

class IndexRequestListener implements EventSubscriberInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class LegacyStorageFileIterator implements FileIteratorInterface
/** @var mixed Last fetched item. */
private $item;

/** @var int Iteration cursor on $statement. */
/** @var int Iteration cursor on statement. */
private $cursor;

/** @var \eZ\Bundle\EzPublishIOBundle\Migration\FileLister\FileRowReaderInterface Used to get file rows. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace eZ\Bundle\EzPublishRestBundle\Tests\Functional;

use eZ\Bundle\EzPublishRestBundle\Tests\Functional\TestCase as RESTFunctionalTestCase;
use eZ\Publish\API\Repository\Values\User\Limitation;

class RoleTest extends RESTFunctionalTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion eZ/Publish/Core/FieldType/Image/ImageStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ImageStorage extends GatewayBasedStorage
/** @var \eZ\Publish\Core\FieldType\Image\AliasCleanerInterface */
protected $aliasCleaner;

/** @var \eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway $gateway */
/** @var \eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway */
protected $gateway;

public function __construct(
Expand Down

0 comments on commit 1f4cb2a

Please sign in to comment.