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

Skip to content

Commit b4c362c

Browse files
bug #39936 [Validator] Fix DebugCommand (loic425)
This PR was squashed before being merged into the 5.2 branch. Discussion ---------- [Validator] Fix DebugCommand | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. --> Commits ------- 1eb1376 [Validator] Fix DebugCommand
2 parents 6f8b4cb + 1eb1376 commit b4c362c

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)