diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 12be2e61..d90227b4 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -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' diff --git a/tests/Fixtures/App/Document/Content.php b/tests/Fixtures/App/Document/Content.php index 2d4ab25c..c9eab724 100644 --- a/tests/Fixtures/App/Document/Content.php +++ b/tests/Fixtures/App/Document/Content.php @@ -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) diff --git a/tests/Functional/Doctrine/Phpcr/RouteProviderTest.php b/tests/Functional/Doctrine/Phpcr/RouteProviderTest.php index f480de83..54931348 100644 --- a/tests/Functional/Doctrine/Phpcr/RouteProviderTest.php +++ b/tests/Functional/Doctrine/Phpcr/RouteProviderTest.php @@ -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);