6 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 51
51
"require-dev" : {
52
52
"ext-pcntl" : " *" ,
53
53
"phpunit/phpunit" : " ^9.5" ,
54
- "phpstan/phpstan" : " ^0.12 " ,
54
+ "phpstan/phpstan" : " ^1.0 " ,
55
55
"queue-interop/queue-spec" : " ^0.6.2" ,
56
56
"symfony/browser-kit" : " ^6.2|^7.0" ,
57
57
"symfony/config" : " ^6.2|^7.0" ,
60
60
"symfony/dependency-injection" : " ^6.2|^7.0" ,
61
61
"symfony/event-dispatcher" : " ^6.2|^7.0" ,
62
62
"symfony/expression-language" : " ^6.2|^7.0" ,
63
- "symfony/http-kernel" : " ^^ 6.2|^7.0" ,
63
+ "symfony/http-kernel" : " ^6.2|^7.0" ,
64
64
"symfony/filesystem" : " ^6.2|^7.0" ,
65
- "symfony/framework-bundle" : " ^^ 6.2|^7.0" ,
65
+ "symfony/framework-bundle" : " ^6.2|^7.0" ,
66
66
"symfony/validator" : " ^6.2|^7.0" ,
67
67
"symfony/yaml" : " ^6.2|^7.0" ,
68
68
"empi89/php-amqp-stubs" : " *@dev" ,
Original file line number Diff line number Diff line change 1
1
parameters :
2
- excludes_analyse :
2
+ excludePaths :
3
3
- docs
4
4
- bin
5
5
- docker
Original file line number Diff line number Diff line change 22
22
use Symfony \Component \Config \FileLocator ;
23
23
use Symfony \Component \Config \Resource \FileResource ;
24
24
use Symfony \Component \DependencyInjection \ContainerBuilder ;
25
+ use Symfony \Component \DependencyInjection \Extension \Extension ;
25
26
use Symfony \Component \DependencyInjection \Extension \PrependExtensionInterface ;
26
27
use Symfony \Component \DependencyInjection \Loader \YamlFileLoader ;
27
28
use Symfony \Component \DependencyInjection \Reference ;
28
- use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
29
29
30
30
final class EnqueueExtension extends Extension implements PrependExtensionInterface
31
31
{
Original file line number Diff line number Diff line change @@ -59,27 +59,19 @@ public function prettyPrintPriority($priority)
59
59
}
60
60
61
61
/**
62
- * @param mixed $body
63
- *
64
62
* @return string
65
63
*/
66
64
public function ensureString ($ body )
67
65
{
68
66
return is_string ($ body ) ? $ body : JSON ::encode ($ body );
69
67
}
70
68
71
- /**
72
- * {@inheritdoc}
73
- */
74
69
public function getName (): string
75
70
{
76
71
return 'enqueue.message_queue ' ;
77
72
}
78
73
79
- /**
80
- * {@inheritdoc}
81
- */
82
- public function reset ()
74
+ public function reset (): void
83
75
{
84
76
$ this ->data = [];
85
77
}
Original file line number Diff line number Diff line change 4
4
5
5
use Symfony \Component \HttpFoundation \Request ;
6
6
use Symfony \Component \HttpFoundation \Response ;
7
- use Throwable ;
8
7
9
8
class MessageQueueCollector extends AbstractMessageQueueCollector
10
9
{
11
- public function collect (Request $ request , Response $ response , Throwable $ exception = null )
10
+ public function collect (Request $ request , Response $ response , ? \ Throwable $ exception = null ): void
12
11
{
13
12
$ this ->collectInternal ($ request , $ response );
14
13
}
Original file line number Diff line number Diff line change 13
13
use Enqueue \Test \ClassExtensionTrait ;
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
+ use Symfony \Component \DependencyInjection \Extension \Extension ;
16
17
use Symfony \Component \DependencyInjection \Reference ;
17
- use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
18
18
19
19
class EnqueueExtensionTest extends TestCase
20
20
{
21
21
use ClassExtensionTrait;
22
22
23
23
public function testShouldImplementConfigurationInterface ()
24
24
{
25
- self :: assertClassExtends (Extension::class, EnqueueExtension::class);
25
+ $ this -> assertClassExtends (Extension::class, EnqueueExtension::class);
26
26
}
27
27
28
28
public function testShouldBeFinal ()
29
29
{
30
- self :: assertClassFinal (EnqueueExtension::class);
30
+ $ this -> assertClassFinal (EnqueueExtension::class);
31
31
}
32
32
33
33
public function testCouldBeConstructedWithoutAnyArguments ()
0 commit comments