Skip to content

Commit 78be452

Browse files
broaden protected-visibility rule to all Shopsys code (#4618)
2 parents ef69416 + 961e8d7 commit 78be452

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Resources/views/Migration/migration.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Doctrine\DBAL\Schema\Schema;
88
use Override;
99
use Shopsys\MigrationBundle\Component\Doctrine\Migrations\AbstractMigration;
1010
11-
class {{ migrationClassName }} extends AbstractMigration
11+
final class {{ migrationClassName }} extends AbstractMigration
1212
{
1313
/**
1414
* @param \Doctrine\DBAL\Schema\Schema $schema

tests/Unit/Component/Doctrine/Migrations/AbstractMigrationTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Tests\MigrationBundle\Unit\Component\Doctrine\Migrations;
66

7+
use Doctrine\Migrations\AbstractMigration;
78
use Doctrine\Migrations\Metadata\AvailableMigration;
89
use Doctrine\Migrations\Version\Version;
910
use PHPUnit\Framework\TestCase;
@@ -12,8 +13,7 @@ abstract class AbstractMigrationTestCase extends TestCase
1213
{
1314
protected function createMockedAvailableMigration(string $className): AvailableMigration
1415
{
15-
/** @var \Doctrine\Migrations\AbstractMigration&\PHPUnit\Framework\MockObject\Stub $migrationStub */
16-
$migrationStub = $this->createStub($className);
16+
$migrationStub = $this->createStub(AbstractMigration::class);
1717

1818
return new AvailableMigration(new Version($className), $migrationStub);
1919
}

tests/Unit/Component/Doctrine/Migrations/Resources/Version20180101000001.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @see \Tests\MigrationBundle\Unit\Component\Doctrine\Migrations\MigrationsLockTest
1313
*/
14-
class Version20180101000001 extends AbstractMigration
14+
final class Version20180101000001 extends AbstractMigration
1515
{
1616
#[Override]
1717
public function up(Schema $schema): void

tests/Unit/Component/Doctrine/Migrations/Resources/Version20180101000002.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @see \Tests\MigrationBundle\Unit\Component\Doctrine\Migrations\MigrationsLockTest
1313
*/
14-
class Version20180101000002 extends AbstractMigration
14+
final class Version20180101000002 extends AbstractMigration
1515
{
1616
#[Override]
1717
public function up(Schema $schema): void

tests/Unit/Component/Doctrine/Migrations/Resources/Version20180101000003.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @see \Tests\MigrationBundle\Unit\Component\Doctrine\Migrations\MigrationsLockTest
1313
*/
14-
class Version20180101000003 extends AbstractMigration
14+
final class Version20180101000003 extends AbstractMigration
1515
{
1616
#[Override]
1717
public function up(Schema $schema): void

tests/Unit/Component/Doctrine/Migrations/Resources/Version20180101000004.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @see \Tests\MigrationBundle\Unit\Component\Doctrine\Migrations\MigrationsLockTest
1313
*/
14-
class Version20180101000004 extends AbstractMigration
14+
final class Version20180101000004 extends AbstractMigration
1515
{
1616
#[Override]
1717
public function up(Schema $schema): void

0 commit comments

Comments
 (0)