| @@ 45-51 (lines=7) @@ | ||
| 42 | */ |
|
| 43 | public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string |
|
| 44 | { |
|
| 45 | if (func_num_args() >= 4) { |
|
| 46 | $operationName = func_get_arg(3); |
|
| 47 | } else { |
|
| 48 | @trigger_error( |
|
| 49 | sprintf( |
|
| 50 | 'Method %s() will have a 4th `string $operationName` argument in version 3.0. Not defining it is deprecated since 2.1.', |
|
| 51 | __METHOD__ |
|
| 52 | ), |
|
| 53 | E_USER_DEPRECATED |
|
| 54 | ); |
|
| @@ 37-43 (lines=7) @@ | ||
| 34 | */ |
|
| 35 | public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string |
|
| 36 | { |
|
| 37 | if (func_num_args() >= 4) { |
|
| 38 | $operationName = func_get_arg(3); |
|
| 39 | } else { |
|
| 40 | @trigger_error(sprintf('Method %s() will have a 4th `string $operationName` argument in version 3.0. Not defining it is deprecated since 2.1.', __METHOD__), E_USER_DEPRECATED); |
|
| 41 | ||
| 42 | $operationName = null; |
|
| 43 | } |
|
| 44 | ||
| 45 | if (isset($operation['path'])) { |
|
| 46 | return $operation['path']; |
|