Skip to content

Commit

Permalink
TASK: Update to Rector 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Dec 19, 2022
1 parent a6ded82 commit b094652
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"helmich/typo3-typoscript-parser": "^2.4.1",
"nette/utils": "^3.0",
"nikic/php-parser": "^4.14",
"phpstan/phpstan": "1.9.2",
"rector/rector": "0.14.8",
"phpstan/phpstan": "^1.7.12",
"rector/rector": "0.15.1",
"symfony/console": "^4.0 || ^5.0 || ^6.0",
"symfony/polyfill-php80": "^1.26",
"symfony/polyfill-php81": "^1.26",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ class MySolrIndexer
$document->setMultiValue('key', 'foo', true);
}

/**
* @param Apache_Solr_Document[] $documents
*/
public function multiple(array $documents)
{
/** @var Apache_Solr_Document $document */
Expand Down Expand Up @@ -48,9 +45,6 @@ class MySolrIndexer
$document->addField('key', 'foo', true);
}

/**
* @param Document[] $documents
*/
public function multiple(array $documents)
{
/** @var Apache_Solr_Document $document */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ use Nimut\TestingFramework\TestCase\UnitTestCase;

class MyUnitTest extends UnitTestCase
{
/**
* @var AccessibleMockObjectInterface
*/
protected $fooBarBaz;
protected AccessibleMockObjectInterface $fooBarBaz;

public function testFooBar()
{
Expand All @@ -35,10 +32,7 @@ use TYPO3\TestingFramework\Core\Exception;

class MyUnitTest extends UnitTestCase
{
/**
* @var AccessibleObjectInterface
*/
protected $fooBarBaz;
protected AccessibleObjectInterface $fooBarBaz;

public function testFooBar()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
use Ssch\TYPO3Rector\Set\Extension\NimutTestingFrameworkSetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->disableImportNames();
$rectorConfig->importNames(false);
$rectorConfig->sets([NimutTestingFrameworkSetList::NIMUT_TESTING_FRAMEWORK_TO_TYPO3_TESTING_FRAMEWORK]);
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ final class ContentObjectRendererFileResourceRectorTest extends AbstractRectorTe
public function test(string $filePath): void
{
$this->markTestIncomplete('The comparison is false positive wrongly.');
#$this->doTestFile($filePath);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/../../../../../../config/config_test.php');
$rectorConfig->disableImportNames();
$rectorConfig->importNames(false);
$rectorConfig->rule(RefactorTypeInternalTypeFileAndFileReferenceToFalRector::class);
};

0 comments on commit b094652

Please sign in to comment.