[Validator] Fix DebugCommand

This commit is contained in:
Loïc Frémont 2021-01-22 11:02:15 +01:00 committed by Nicolas Grekas
parent b5af0083de
commit 1eb13767fc
2 changed files with 8 additions and 1 deletions

View File

@ -181,7 +181,7 @@ EOF
$namespace = $matches[1] ?? null;
if (false === preg_match('/class +([^{ ]+)/', $fileContent, $matches)) {
if (!preg_match('/class +([^{ ]+)/', $fileContent, $matches)) {
// no class found
continue;
}

View File

@ -0,0 +1,7 @@
<?php
namespace Symfony\Component\Validator\Tests\Dummy;
trait TraitPass
{
}