Skip to content

Commit

Permalink
attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Feb 17, 2024
1 parent 1a2ebbe commit 2c5898c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
fail-fast: false
matrix:
include:
- php-version: '8.0'
- php-version: '8.1'
dependencies: 'lowest'
- php-version: '8.0'
- php-version: '8.1'
- php-version: '8.2'
- php-version: '8.3'
Expand Down
22 changes: 6 additions & 16 deletions tests/Fixtures/App/Document/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,21 @@

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

use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
use Doctrine\ODM\PHPCR\Mapping\Attributes as PHPCRODM;

/**
* @PHPCRODM\Document(referenceable=true)
*/
#[PHPCRODM\Document(referenceable: true)]
class Content
{
/**
* @PHPCRODM\Id
*/
#[PHPCRODM\Id()]
private $id;

/**
* @PHPCRODM\ParentDocument
*/
#[PHPCRODM\ParentDocument]
private $parent;

/**
* @PHPCRODM\NodeName
*/
#[PHPCRODM\NodeName]
private $name;

/**
* @PHPCRODM\Field(type="string")
*/
#[PHPCRODM\Field(type: 'string')]
private $title;

public function setId($id)
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/Doctrine/Phpcr/RouteProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function testGetRouteCollectionForRequestFormat()
*/
public function testGetRouteCollectionForRequestNonPhpcrUrl()
{
$routes = $this->repository->getRouteCollectionForRequest(Request::create('http:///'));
$routes = $this->repository->getRouteCollectionForRequest(Request::create('http://localhost/'));
$this->assertInstanceOf(RouteCollection::class, $routes);
$this->assertCount(1, $routes);

Expand Down

0 comments on commit 2c5898c

Please sign in to comment.