Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1eb1376

Browse files
loic425nicolas-grekas
authored andcommitted
[Validator] Fix DebugCommand
1 parent b5af008 commit 1eb1376

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Symfony/Component/Validator/Command/DebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function getResourcesByPath(string $path): array
181181

182182
$namespace = $matches[1] ?? null;
183183

184-
if (false === preg_match('/class +([^{ ]+)/', $fileContent, $matches)) {
184+
if (!preg_match('/class +([^{ ]+)/', $fileContent, $matches)) {
185185
// no class found
186186
continue;
187187
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\Validator\Tests\Dummy;
4+
5+
trait TraitPass
6+
{
7+
}

0 commit comments

Comments
 (0)