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
-------
1eb13767fc
[Validator] Fix DebugCommand
This commit is contained in:
commit
b4c362cdc3
@ -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;
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\Validator\Tests\Dummy;
|
||||
|
||||
trait TraitPass
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user