Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AddComponentDataResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AddComponentDataResolver implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$actionManager = $container->findDefinition('spy_timeline.action_manager');
$componentDataResolver = $container->findDefinition('spy_timeline.resolve_component.resolver');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AddDeliveryMethodCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
// we only do a call if the delivery method is immediate.
if ($container->getParameter('spy_timeline.spread.deployer.delivery') !== "immediate") {
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AddFilterCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AddFilterCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$filterManager = $container->getDefinition('spy_timeline.filter.manager');

Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AddLocatorCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AddLocatorCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$parameterDefinitions = $this->getLocatorDefinitionsFromParameter($container);
$taggedServiceDefinitions = $this->getLocatorDefinitionsFromTaggedServices($container);
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AddRegistryCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AddRegistryCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasParameter('spy_timeline.resolve_component.doctrine_registries')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AddSpreadCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AddSpreadCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$alias = $container->getAlias('spy_timeline.spread.deployer');
$spreadDeployer = $container->getDefinition((string) $alias);
Expand Down
2 changes: 2 additions & 0 deletions Resources/config/doctrine/Component.mongodb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<field name="model" fieldName="model" type="string" />
<field name="identifier" fieldName="identifier" type="string" />
<field name="hash" fieldName="hash" type="string" />
<field name="identifierMigrated" fieldName="identifier_migrated" type="string" length="255" nullable="true" />
<field name="hashMigrated" fieldName="hash_migrated" type="string" length="255" nullable="true" unique="true" />
<indexes>
<index>
<key name="model" order="asc" />
Expand Down
2 changes: 2 additions & 0 deletions Resources/config/doctrine/Component.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<field name="model" column="model" type="string" length="255" />
<field name="identifier" column="identifier" type="array" />
<field name="hash" column="hash" type="string" unique="true" />
<field name="identifierMigrated" column="identifier_migrated" type="string" length="255" nullable="true" />
<field name="hashMigrated" column="hash_migrated" type="string" length="255" nullable="true" unique="true" />
</mapped-superclass>
</doctrine-mapping>
2 changes: 1 addition & 1 deletion SpyTimelineBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SpyTimelineBundle extends Bundle
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new AddSpreadCompilerPass());
$container->addCompilerPass(new AddFilterCompilerPass());
Expand Down
4 changes: 2 additions & 2 deletions Tests/Units/Command/DeployActionCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testNoTimeline()
$command = new DeployActionCommand($actionManager, $deployer, $logger);

$application = new Application();
$application->add($command);
$application->addCommand($command);

$command = $application->find('spy_timeline:deploy');

Expand All @@ -43,7 +43,7 @@ public function testOneTimeline()
$command = new DeployActionCommand($actionManager, $deployer, $logger);

$application = new Application();
$application->add($command);
$application->addCommand($command);

$command = $application->find('spy_timeline:deploy');

Expand Down
4 changes: 2 additions & 2 deletions Tests/Units/Command/SpreadListCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testExecuteWithNoSpread()
$command = new SpreadListCommand($deployer);

$application = new Application();
$application->add($command);
$application->addCommand($command);

$command = $application->find('spy_timeline:spreads');

Expand All @@ -38,7 +38,7 @@ public function testExecuteWithOneSpread()
$command = new SpreadListCommand($deployer);

$application = new Application();
$application->add($command);
$application->addCommand($command);

$command = $application->find('spy_timeline:spreads');

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}],
"require": {
"php": ">=8.3",
"stephpy/timeline": "^1.0",
"stephpy/timeline": "^1.2",
"symfony/framework-bundle": ">=5.4",
"symfony/options-resolver": ">=5.4",
"twig/twig": ">=3.0"
Expand Down