File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
src/Rebuy/Amqp/Consumer/Annotation Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
matrix :
10
10
include :
11
- - php : 5.5
12
11
- php : 5.6
13
12
- php : 5.6
14
13
env : COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
15
14
- php : 7
15
+ - php : 7
16
+ env : COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
16
17
- php : nightly
17
18
- php : hhvm
18
19
allow_failures :
Original file line number Diff line number Diff line change 12
12
}
13
13
],
14
14
"require" : {
15
- "php" : " >=5.5 .0" ,
16
- "videlalvaro /php-amqplib" : " ~2.6" ,
15
+ "php" : " ^5.6 || ^7 .0" ,
16
+ "php-amqplib /php-amqplib" : " ~2.6" ,
17
17
"doctrine/annotations" : " ~1.2" ,
18
18
"jms/serializer" : " ~1.0" ,
19
- "symfony/event-dispatcher" : " ~2.3" ,
19
+ "symfony/event-dispatcher" : " ~2.3|~3.0 " ,
20
20
"doctrine/collections" : " ~1.0"
21
21
},
22
22
"require-dev" : {
23
- "phpunit/phpunit" : " ^4.8 " ,
24
- "codeception/verify" : " dev-master " ,
23
+ "phpunit/phpunit" : " ~5.4 " ,
24
+ "codeception/verify" : " ~0.3 " ,
25
25
"league/statsd" : " ~1.1" ,
26
- "symfony/stopwatch" : " ~2.3" ,
26
+ "symfony/stopwatch" : " ~2.3|3.0 " ,
27
27
"psr/log" : " ^1.0"
28
28
},
29
29
"config" : {
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ public function getConsumerMethods($obj)
39
39
$ class = new ReflectionClass ($ obj );
40
40
$ consumerMethods = [];
41
41
foreach ($ class ->getMethods (ReflectionMethod::IS_PUBLIC ) as $ method ) {
42
+ /** @var Consumer $annotation */
42
43
$ annotation = $ this ->reader ->getMethodAnnotation ($ method , Consumer::class);
43
44
if (null === $ annotation ) {
44
45
continue ;
You can’t perform that action at this time.
0 commit comments