Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 60b62b3

Browse files
authored
Merge pull request #77 from symfony-cmf/fix_description_enhancer
Fixed missing use statement of CmfResource
2 parents e0a0f15 + 389b035 commit 60b62b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Description/SonataEnhancer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Cmf\Component\Resource\Description\DescriptionEnhancerInterface;
1818
use Symfony\Cmf\Component\Resource\Description\Descriptor;
1919
use Symfony\Cmf\Component\Resource\Puli\Api\PuliResource;
20+
use Symfony\Cmf\Component\Resource\Repository\Resource\CmfResource;
2021
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
2122

2223
/**
@@ -108,7 +109,7 @@ public function enhance(Description $description)
108109
*/
109110
public function supports(PuliResource $resource)
110111
{
111-
if (false === $resource instanceof CmfResource) {
112+
if (!$resource instanceof CmfResource) {
112113
return false;
113114
}
114115

0 commit comments

Comments
 (0)