Skip to content

Commit

Permalink
Merge 4.x into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Nov 14, 2024
2 parents c22267c + 40c0c51 commit f747100
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"matthiasnoback/symfony-config-test": "^4.2 || ^5.1",
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpdoc-parser": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
Expand Down
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

use Rector\Config\RectorConfig;
use Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\NarrowUnusedSetUpDefinedPropertyRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
Expand All @@ -40,5 +41,6 @@
$rectorConfig->skip([
ExceptionHandlerTypehintRector::class,
PreferPHPUnitThisCallRector::class,
NarrowUnusedSetUpDefinedPropertyRector::class,
]);
};
2 changes: 1 addition & 1 deletion src/Admin/ContextAwareAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(
$contextManager,
?string $deprecatedClass = null,
?string $deprecatedBaseControllerName = null,
?ContextManagerInterface $deprecatedContextManager = null
?ContextManagerInterface $deprecatedContextManager = null,
) {
// NEXT_MAJOR: Keep the if part.
if ($contextManager instanceof ContextManagerInterface) {
Expand Down
2 changes: 1 addition & 1 deletion src/Block/Service/AbstractCategoriesBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
Environment $twig,
ContextManagerInterface $contextManager,
private CategoryManagerInterface $categoryManager,
private ?AdminInterface $categoryAdmin
private ?AdminInterface $categoryAdmin,
) {
parent::__construct($twig, $contextManager);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Block/Service/AbstractClassificationBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class AbstractClassificationBlockService extends AbstractBlockService
{
public function __construct(
Environment $twig,
protected ContextManagerInterface $contextManager
protected ContextManagerInterface $contextManager,
) {
parent::__construct($twig);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Block/Service/AbstractCollectionsBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
Environment $twig,
ContextManagerInterface $contextManager,
private CollectionManagerInterface $collectionManager,
private ?AdminInterface $collectionAdmin = null
private ?AdminInterface $collectionAdmin = null,
) {
parent::__construct($twig, $contextManager);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Block/Service/AbstractTagsBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
Environment $twig,
ContextManagerInterface $contextManager,
private TagManagerInterface $tagManager,
private ?AdminInterface $tagAdmin = null
private ?AdminInterface $tagAdmin = null,
) {
parent::__construct($twig, $contextManager);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/FixContextCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
private ContextManagerInterface $contextManager,
private TagManagerInterface $tagManager,
private CollectionManagerInterface $collectionManager,
private CategoryManagerInterface $categoryManager
private CategoryManagerInterface $categoryManager,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Document/CategoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class CategoryManager extends BaseDocumentManager implements CategoryManag
public function __construct(
string $class,
ManagerRegistry $registry,
protected ContextManagerInterface $contextManager
protected ContextManagerInterface $contextManager,
) {
parent::__construct($class, $registry);
$this->categories = [];
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/CategoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class CategoryManager extends BaseEntityManager implements CategoryManager
public function __construct(
string $class,
ManagerRegistry $registry,
protected ContextManagerInterface $contextManager
protected ContextManagerInterface $contextManager,
) {
parent::__construct($class, $registry);
$this->categories = [];
Expand Down

0 comments on commit f747100

Please sign in to comment.