Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ parameters:
- src/Core/Metadata/Property/Factory/CachedPropertyNameCollectionFactory.php
- src/Core/Metadata/Property/Factory/ExtractorPropertyNameCollectionFactory.php
- src/Core/Metadata/Property/PropertyNameCollection.php
- src/Core/Metadata/Resource/ResourceNameCollection.php
- src/Core/OpenApi/Model/Components.php
- src/Core/OpenApi/Model/Contact.php
- src/Core/OpenApi/Model/Encoding.php
Expand Down
22 changes: 22 additions & 0 deletions src/Core/Metadata/Resource/ResourceNameCollection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace ApiPlatform\Core\Metadata\Resource;

class_exists(\ApiPlatform\Metadata\Resource\ResourceNameCollection::class);

if (false) {
final class ResourceNameCollection extends \ApiPlatform\Metadata\Resource\ResourceNameCollection
{
}
}
2 changes: 2 additions & 0 deletions src/deprecation.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class_alias($interfaceName, $oldInterfaceName);
ApiPlatform\Core\Metadata\Property\Factory\CachedPropertyNameCollectionFactory::class => ApiPlatform\Metadata\Property\Factory\CachedPropertyNameCollectionFactory::class,
ApiPlatform\Core\Metadata\Property\Factory\ExtractorPropertyNameCollectionFactory::class => ApiPlatform\Metadata\Property\Factory\ExtractorPropertyNameCollectionFactory::class,

ApiPlatform\Core\Metadata\Resource\ResourceNameCollection::class => ApiPlatform\Metadata\Resource\ResourceNameCollection::class,

// Test cases
ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase::class => ApiPlatform\Symfony\Bundle\Test\ApiTestCase::class,
ApiPlatform\Core\Test\DoctrineMongoDbOdmFilterTestCase::class => ApiPlatform\Test\DoctrineMongoDbOdmFilterTestCase::class,
Expand Down