Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit d8ed2be

Browse files
committed
Updated missing null safety check
1 parent cd007e7 commit d8ed2be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/docs/service.phtml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ $version = $this->getParam('version', '');
1616
$versionDocs = $this->getParam('versionDocs', '');
1717
$versions = $this->getParam('versions', []);
1818
$classess = [];
19+
$paths = $spec['paths'] ?? [];
1920
$codes = [
2021
'200' => [
2122
'text' => 'OK',
@@ -39,7 +40,7 @@ $paramSDK = (!empty($sdk)) ? '?sdk='.$sdk : '';
3940

4041
<div data-ls-attrs="class=language-<?php echo $this->escape($sdk); ?> platform-<?php echo $this->escape($family); ?> examples-in-<?php echo $this->escape($sdk); ?>">
4142
<?php
42-
foreach ($spec['paths'] as $url => $path) {
43+
foreach ($paths as $url => $path) {
4344
foreach ($path as $method => $operation) {
4445
if(!in_array($service, $operation['tags'])) {
4546
continue;

0 commit comments

Comments
 (0)