Skip to content

Commit 2c5898c

Browse files
committed
attributes
1 parent 1a2ebbe commit 2c5898c

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

.github/workflows/test-application.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
include:
24-
- php-version: '8.0'
24+
- php-version: '8.1'
2525
dependencies: 'lowest'
26-
- php-version: '8.0'
2726
- php-version: '8.1'
2827
- php-version: '8.2'
2928
- php-version: '8.3'

tests/Fixtures/App/Document/Content.php

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,21 @@
1111

1212
namespace Symfony\Cmf\Bundle\RoutingBundle\Tests\Fixtures\App\Document;
1313

14-
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
14+
use Doctrine\ODM\PHPCR\Mapping\Attributes as PHPCRODM;
1515

16-
/**
17-
* @PHPCRODM\Document(referenceable=true)
18-
*/
16+
#[PHPCRODM\Document(referenceable: true)]
1917
class Content
2018
{
21-
/**
22-
* @PHPCRODM\Id
23-
*/
19+
#[PHPCRODM\Id()]
2420
private $id;
2521

26-
/**
27-
* @PHPCRODM\ParentDocument
28-
*/
22+
#[PHPCRODM\ParentDocument]
2923
private $parent;
3024

31-
/**
32-
* @PHPCRODM\NodeName
33-
*/
25+
#[PHPCRODM\NodeName]
3426
private $name;
3527

36-
/**
37-
* @PHPCRODM\Field(type="string")
38-
*/
28+
#[PHPCRODM\Field(type: 'string')]
3929
private $title;
4030

4131
public function setId($id)

tests/Functional/Doctrine/Phpcr/RouteProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testGetRouteCollectionForRequestFormat()
113113
*/
114114
public function testGetRouteCollectionForRequestNonPhpcrUrl()
115115
{
116-
$routes = $this->repository->getRouteCollectionForRequest(Request::create('http:///'));
116+
$routes = $this->repository->getRouteCollectionForRequest(Request::create('http://localhost/'));
117117
$this->assertInstanceOf(RouteCollection::class, $routes);
118118
$this->assertCount(1, $routes);
119119

0 commit comments

Comments
 (0)