File tree Expand file tree Collapse file tree 6 files changed +46
-9
lines changed
features/demo_app/src/Method Expand file tree Collapse file tree 6 files changed +46
-9
lines changed Original file line number Diff line number Diff line change 66 - ' 7.2'
77
88env :
9- CI : ' true'
10- TEST_OUTPUT_STYLE : ' pretty'
11- PHPCS_REPORT_STYLE : ' full'
12- COMPOSER_OPTIONS : ' --optimize-autoloader'
9+ global :
10+ CI : ' true'
11+ TEST_OUTPUT_STYLE : ' pretty'
12+ PHPCS_REPORT_STYLE : ' full'
13+ COMPOSER_OPTIONS : ' --optimize-autoloader'
14+ matrix :
15+ - SDK_VERSION : ' ~1.2'
16+ - SDK_VERSION : ' ~2.0'
1317
1418sudo : false
1519
1620matrix :
1721 fast_finish : true
1822
23+ before_install :
24+ # remove xdebug to speed up build
25+ - phpenv config-rm xdebug.ini
26+
1927install :
28+ - composer require yoanm/jsonrpc-server-sdk:$SDK_VERSION
2029 - make build
2130script :
2231 - make test-technical
Original file line number Diff line number Diff line change 2727 },
2828 "require" : {
2929 "php" : " >7.0" ,
30- "yoanm/jsonrpc-server-sdk" : " ^ 1.2" ,
30+ "yoanm/jsonrpc-server-sdk" : " ~ 1.2 || ~2.0 " ,
3131 "symfony/http-foundation" : " ^3.0 || ^4.0" ,
3232 "symfony/dependency-injection" : " ^3.0 || ^4.0" ,
3333 "yoanm/jsonrpc-server-sdk-psr11-resolver" : " ^2.0"
Original file line number Diff line number Diff line change 55
66class MethodA implements JsonRpcMethodInterface
77{
8- public function validateParams (array $ paramList )
8+ /**
9+ * {@inheritdoc}
10+ */
11+ public function validateParams (array $ paramList ) : array
912 {
13+ return [];
1014 }
1115
16+ /**
17+ * {@inheritdoc}
18+ */
1219 public function apply (array $ paramList = null )
1320 {
1421 return 'MethodA ' ;
Original file line number Diff line number Diff line change 55
66class MethodB implements JsonRpcMethodInterface
77{
8- public function validateParams (array $ paramList )
8+ /**
9+ * {@inheritdoc}
10+ */
11+ public function validateParams (array $ paramList ) : array
912 {
13+ return [];
1014 }
1115
16+ /**
17+ * {@inheritdoc}
18+ */
1219 public function apply (array $ paramList = null )
1320 {
1421 return 'MethodB ' ;
Original file line number Diff line number Diff line change 55
66class MethodC implements JsonRpcMethodInterface
77{
8- public function validateParams (array $ paramList )
8+ /**
9+ * {@inheritdoc}
10+ */
11+ public function validateParams (array $ paramList ) : array
912 {
13+ return [];
1014 }
1115
16+ /**
17+ * {@inheritdoc}
18+ */
1219 public function apply (array $ paramList = null )
1320 {
1421 return 'MethodC ' ;
Original file line number Diff line number Diff line change 55
66class MethodD implements JsonRpcMethodInterface
77{
8- public function validateParams (array $ paramList )
8+ /**
9+ * {@inheritdoc}
10+ */
11+ public function validateParams (array $ paramList ) : array
912 {
13+ return [];
1014 }
1115
16+ /**
17+ * {@inheritdoc}
18+ */
1219 public function apply (array $ paramList = null )
1320 {
1421 return 'MethodD ' ;
You can’t perform that action at this time.
0 commit comments