We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as
use Enum as B
Enum
\Enum as ConsistenceEnum
JMS\SerializerBundle\Cache::findClasses
There is some problem in regex parts...
This has been copied from https://github.com/composer/composer/blob/bfed974ae969635e622c4844e5e69526d8459baf/src/Composer/Autoload/ClassMapGenerator.php#L120-L214
<?php namespace Jms; use Consistence\Enum\Enum as ConsistenceEnum; class MyEnum extends ConsistenceEnum { }
<?php declare(strict_types = 1); namespace Jms; use JMS\SerializerBundle\Cache\CacheWarmer; use PHPUnit\Framework\TestCase; class CacheWarmerTest extends TestCase { public function testFindClasses(): void { $classes = CacheWarmer::findClasses(__DIR__ . '/MyEnum.php'); self::assertSame(['Jms\MyEnum'], $classes); } }
<?php declare(strict_types = 1); namespace Jms; use JMS\SerializerBundle\Cache\CacheWarmer; use PHPUnit\Framework\TestCase; class CacheWarmerTest extends TestCase { public function testFindClasses(): void { $classes = CacheWarmer::findClasses(__DIR__ . '/MyEnum.php'); self::assertSame(['Jms\as', 'Jms\MyEnum'], $classes); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps required to reproduce the problem
Enum
class\Enum as ConsistenceEnum
JMS\SerializerBundle\Cache::findClasses
make as publicThere is some problem in regex parts...
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: