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

Commit c854b36

Browse files
committed
Support PHP 7
1 parent e977f7f commit c854b36

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Tests/Resources/Document/AbstractContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AbstractContent
3333
public $routes;
3434

3535
/**
36-
* @PHPCR\String()
36+
* @PHPCR\Field(type="string")
3737
*/
3838
public $title;
3939

Tests/Resources/Document/Article.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Article
3333
public $routes;
3434

3535
/**
36-
* @PHPCR\String(translated=true)
36+
* @PHPCR\Field(type="string", translated=true)
3737
*/
3838
public $title;
3939

@@ -43,7 +43,7 @@ class Article
4343
public $locale;
4444

4545
/**
46-
* @PHPCR\Date(nullable=true)
46+
* @PHPCR\Field(type="date", nullable=true)
4747
*/
4848
public $date;
4949

Tests/Resources/Document/Blog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Blog
3535
public $routes;
3636

3737
/**
38-
* @PHPCR\String()
38+
* @PHPCR\Field(type="string")
3939
*/
4040
public $title;
4141

Tests/Resources/Document/Post.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ class Post
4545
public $name;
4646

4747
/**
48-
* @PHPCR\String()
48+
* @PHPCR\Field(type="string")
4949
*/
5050
public $title;
5151

5252
/**
53-
* @PHPCR\String(nullable=true)
53+
* @PHPCR\Field(type="string", nullable=true)
5454
*/
5555
public $body;
5656

5757
/**
58-
* @PHPCR\Date(nullable=true)
58+
* @PHPCR\Field(type="date", nullable=true)
5959
*/
6060
public $date;
6161

Tests/Resources/Document/SeoArticle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ class SeoArticle
3333
public $routes;
3434

3535
/**
36-
* @PHPCR\String()
36+
* @PHPCR\Field(type="string")
3737
*/
3838
public $title;
3939

4040
/**
41-
* @PHPCR\Date(nullable=true)
41+
* @PHPCR\Field(type="date", nullable=true)
4242
*/
4343
public $date;
4444

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"symfony/yaml": "~2.1",
2626
"matthiasnoback/symfony-dependency-injection-test": "~0.6",
2727
"matthiasnoback/symfony-config-test": "0.*",
28-
"doctrine/phpcr-odm": "~1.2",
28+
"doctrine/phpcr-odm": "~1.3",
2929
"phpunit/phpunit": "~4.5",
3030
"symfony/phpunit-bridge": "2.7.x@beta"
3131
},

0 commit comments

Comments
 (0)