diff --git a/src/Symfony/DependencyInjection/Compiler/PresenterCompilerPass.php b/src/Symfony/DependencyInjection/Compiler/PresenterCompilerPass.php index ff09dcc8..580a69c2 100644 --- a/src/Symfony/DependencyInjection/Compiler/PresenterCompilerPass.php +++ b/src/Symfony/DependencyInjection/Compiler/PresenterCompilerPass.php @@ -21,10 +21,7 @@ final class PresenterCompilerPass implements CompilerPassInterface foreach ($container->findTaggedServiceIds('flasher.presenter') as $id => $tags) { foreach ($tags as $attributes) { if (!isset($attributes['alias'])) { - throw new \InvalidArgumentException(\sprintf( - 'Service "%s" tagged with "flasher.presenter" must have an "alias" attribute.', - $id - )); + throw new \InvalidArgumentException(\sprintf('Service "%s" tagged with "flasher.presenter" must have an "alias" attribute.', $id)); } $definition->addMethodCall('addPresenter', [ diff --git a/tests/Laravel/EventListener/OctaneListenerTest.php b/tests/Laravel/EventListener/OctaneListenerTest.php index b8a8b18f..4a35ac46 100644 --- a/tests/Laravel/EventListener/OctaneListenerTest.php +++ b/tests/Laravel/EventListener/OctaneListenerTest.php @@ -15,7 +15,7 @@ final class OctaneListenerTest extends TestCase // Verify the listener is invokable (has __invoke method) // This is crucial for Laravel's event dispatcher to call it correctly - $this->assertTrue(is_callable($listener)); + $this->assertIsCallable($listener); } public function testListenerHasInvokeMethod(): void diff --git a/tests/Laravel/Translation/TranslatorTest.php b/tests/Laravel/Translation/TranslatorTest.php index 18d87159..a2b1486a 100644 --- a/tests/Laravel/Translation/TranslatorTest.php +++ b/tests/Laravel/Translation/TranslatorTest.php @@ -113,7 +113,7 @@ final class TranslatorTest extends TestCase $this->laravelTranslatorMock->expects() ->get('flasher::messages.key', \Mockery::on(function ($params) { - return isset($params['name']) && $params['name'] === 'John'; + return isset($params['name']) && 'John' === $params['name']; }), null) ->andReturns('Hello John'); diff --git a/tests/Symfony/Command/InstallCommandTest.php b/tests/Symfony/Command/InstallCommandTest.php index a6a280ea..47591ad9 100644 --- a/tests/Symfony/Command/InstallCommandTest.php +++ b/tests/Symfony/Command/InstallCommandTest.php @@ -83,7 +83,7 @@ final class InstallCommandTest extends MockeryTestCase { // Create a kernel that returns a non-existent project directory // This will cause getPublicDir() to return null - $kernel = new class() extends Kernel { + $kernel = new class extends Kernel { public function __construct() { parent::__construct('test', true);