Skip to content

Commit

Permalink
Nutze den DebugClassLoader, um fehlende Return Types aufzuspüren
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Sep 4, 2024
1 parent 867bdc2 commit 2a8e3ed
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"require-dev": {
"phpunit/phpunit": "^10.5",
"symfony/browser-kit": "^5.4|^6.0|^7.0",
"symfony/error-handler": "^5.4|^6.0|^7.1",
"symfony/expression-language": "^5.4|^6.0|^7.0",
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
"symfony/phpunit-bridge": ">= 6.0",
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="tests/bootstrap.php" cacheDirectory=".phpunit.cache">
<php>
<env name="SHELL_VERBOSITY" value="-1" />
<server name="KERNEL_CLASS" value="\Webfactory\ShortcodeBundle\Tests\Fixtures\TestKernel" />
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=9999" />
</php>
<testsuites>
<testsuite name="Project Test Suite">
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/ShortcodeCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class ShortcodeCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$shortcodeServices = $container->findTaggedServiceIds('webfactory.shortcode');

Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/WebfactoryShortcodeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
final class WebfactoryShortcodeExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('shortcodes.xml');
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function registerBundles(): array
];
}

public function registerContainerConfiguration(LoaderInterface $loader)
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(__DIR__.'/config/config.yml');
$loader->load(__DIR__.'/config/test_shortcodes.xml');
Expand Down

0 comments on commit 2a8e3ed

Please sign in to comment.