Skip to content

Commit 1f4ca89

Browse files
committed
Fix deprecated & move from annotations to attributes
1 parent 5ac9c56 commit 1f4ca89

File tree

4 files changed

+9
-23
lines changed

4 files changed

+9
-23
lines changed

src/CacheWarmer/CompileCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function isOptional(): bool
3131
*
3232
* @return string[]
3333
*/
34-
public function warmUp($cacheDir)
34+
public function warmUp($cacheDir, string $buildDir = null)
3535
{
3636
if ($this->compiled) {
3737
// use warm up cache dir if type generator cache dir not already explicitly declared

tests/Functional/App/config/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ framework:
77
profiler:
88
enabled: false
99
http_method_override: false
10+
handle_all_throwables: false
1011

1112
security:
1213
enable_authenticator_manager: true

tests/Functional/App/config/validator/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ imports:
22
- { resource: ../config.yml }
33

44
framework:
5-
annotations: true
65
validation:
76
enabled: true
8-
enable_annotations: true
97

108
overblog_graphql:
119
definitions:
@@ -38,4 +36,3 @@ services:
3836
- { name: "overblog_graphql.mutation", alias: "mutation_mock", method: "mutationMock" }
3937
- { name: "overblog_graphql.mutation", alias: "mutation_errors", method: "mutationErrors" }
4038
- { name: "overblog_graphql.mutation", alias: "no_validation", method: "noValidation" }
41-

tests/Functional/Validator/DummyEntity.php

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,32 @@
99
/**
1010
* Class DummyEntity.
1111
*
12-
* @Assert\Callback({"Overblog\GraphQLBundle\Tests\Functional\Validator\StaticValidator", "validateClass"})
1312
*/
13+
#[Assert\Callback([StaticValidator::class, 'validateClass'])]
1414
final class DummyEntity
1515
{
16-
/**
17-
* @Assert\EqualTo("Lorem Ipsum")
18-
*/
16+
#[Assert\EqualTo('Lorem Ipsum')]
1917
private string $string1;
2018

21-
/**
22-
* @Assert\EqualTo("Lorem Ipsum")
23-
*/
19+
#[Assert\EqualTo('Lorem Ipsum')]
2420
private string $string2;
2521

26-
/**
27-
* @Assert\EqualTo("{""text"":""Lorem Ipsum""}")
28-
*/
22+
#[Assert\EqualTo('{"text":"Lorem Ipsum"}')]
2923
private string $string3;
3024

31-
/**
32-
* @Assert\EqualTo("Dolor Sit Amet")
33-
*/
25+
#[Assert\EqualTo('Dolor Sit Amet')]
3426
public function getString1(): string
3527
{
3628
return $this->string1;
3729
}
3830

39-
/**
40-
* @Assert\EqualTo("Dolor Sit Amet")
41-
*/
31+
#[Assert\EqualTo('Dolor Sit Amet')]
4232
public function getString2(): string
4333
{
4434
return $this->string2;
4535
}
4636

47-
/**
48-
* @Assert\Json()
49-
*/
37+
#[Assert\Json()]
5038
public function getString3(): string
5139
{
5240
return $this->string3;

0 commit comments

Comments
 (0)