Skip to content

Commit 2a8e3ed

Browse files
committed
Nutze den DebugClassLoader, um fehlende Return Types aufzuspüren
1 parent 867bdc2 commit 2a8e3ed

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"require-dev": {
2222
"phpunit/phpunit": "^10.5",
2323
"symfony/browser-kit": "^5.4|^6.0|^7.0",
24+
"symfony/error-handler": "^5.4|^6.0|^7.1",
2425
"symfony/expression-language": "^5.4|^6.0|^7.0",
2526
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
2627
"symfony/phpunit-bridge": ">= 6.0",

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
2+
<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">
33
<php>
44
<env name="SHELL_VERBOSITY" value="-1" />
55
<server name="KERNEL_CLASS" value="\Webfactory\ShortcodeBundle\Tests\Fixtures\TestKernel" />
66
<ini name="error_reporting" value="-1" />
77
<server name="APP_ENV" value="test" force="true" />
8-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
8+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=9999" />
99
</php>
1010
<testsuites>
1111
<testsuite name="Project Test Suite">

src/DependencyInjection/Compiler/ShortcodeCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class ShortcodeCompilerPass implements CompilerPassInterface
1515
{
16-
public function process(ContainerBuilder $container)
16+
public function process(ContainerBuilder $container): void
1717
{
1818
$shortcodeServices = $container->findTaggedServiceIds('webfactory.shortcode');
1919

src/DependencyInjection/WebfactoryShortcodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
final class WebfactoryShortcodeExtension extends Extension
1515
{
16-
public function load(array $configs, ContainerBuilder $container)
16+
public function load(array $configs, ContainerBuilder $container): void
1717
{
1818
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
1919
$loader->load('shortcodes.xml');

tests/Fixtures/TestKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function registerBundles(): array
1919
];
2020
}
2121

22-
public function registerContainerConfiguration(LoaderInterface $loader)
22+
public function registerContainerConfiguration(LoaderInterface $loader): void
2323
{
2424
$loader->load(__DIR__.'/config/config.yml');
2525
$loader->load(__DIR__.'/config/test_shortcodes.xml');

0 commit comments

Comments
 (0)