Run PHP-CS-Fixer (no_useless_else & static_lambda)

This commit is contained in:
Hugo Alliaume
2026-02-03 07:47:35 +01:00
parent 1cf88a0801
commit b9c97a44a8
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class SvelteControllerLoaderAssetCompilerTest extends TestCase
$this->equalTo(realpath(__DIR__.'/../fixtures/svelte/controllers/MySvelteController.js')),
$this->equalTo(realpath(__DIR__.'/../fixtures/svelte/controllers/subdir/DeeperSvelteController.js')),
))
->willReturnCallback(function ($sourcePath) {
->willReturnCallback(static function ($sourcePath) {
if (str_contains($sourcePath, 'MySvelteController')) {
return new MappedAsset(
'MySvelteController.js',

View File

@@ -34,7 +34,7 @@ class TwigAppKernel extends Kernel
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(function (ContainerBuilder $container) {
$loader->load(static function (ContainerBuilder $container) {
$container->loadFromExtension('framework', [
'secret' => '$ecret',
'test' => true,