Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8138: [Rector] Applied rules from Symfony 5 Rector set lists #70

Merged
merged 1 commit into from
Aug 9, 2024
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 src/bundle/Command/GeneratePlatformSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('');
$this->compileTypes($output);

return 0;
return Command::SUCCESS;
}

private function compileTypes(OutputInterface $output)
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Configuration implements ConfigurationInterface
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
return new TreeBuilder(IbexaGraphQLExtension::EXTENSION_NAME);
}
Expand Down
3 changes: 2 additions & 1 deletion src/bundle/IbexaGraphQLBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;
use Ibexa\Bundle\GraphQL\DependencyInjection\IbexaGraphQLExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class IbexaGraphQLBundle extends Bundle
Expand All @@ -24,7 +25,7 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new Compiler\SchemaDomainIteratorsPass());
}

public function getContainerExtension()
public function getContainerExtension(): ?ExtensionInterface
{
return new IbexaGraphQLExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Value/ContentFieldValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __get($property)
return parent::__get($property);
}

public function __toString()
public function __toString(): string
{
return (string)$this->value;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Value/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __get($property)
return parent::__get($property);
}

public function __toString()
public function __toString(): string
{
return (string)$this->value;
}
Expand Down
Loading