Skip to content

Commit b92417c

Browse files
committed
Merge branch '24-from-private-to-protected' into 'master'
#24 Сделать private методы protected See merge request components/laravel-swagger!21
2 parents 10aaa9d + 08bbdee commit b92417c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/SwaggerService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function getDocFileContent()
589589
return $data;
590590
}
591591

592-
private function camelCaseToUnderScore($input)
592+
protected function camelCaseToUnderScore($input)
593593
{
594594
preg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $input, $matches);
595595
$ret = $matches[0];
@@ -637,7 +637,7 @@ protected function replaceObjectValues($parameters)
637637
* We hope swagger developers will resolve this problem in next release of Swagger OpenAPI
638638
* */
639639

640-
private function replaceNullValues($parameters, $types, &$example)
640+
protected function replaceNullValues($parameters, $types, &$example)
641641
{
642642
foreach ($parameters as $parameter => $value) {
643643
if (is_null($value) && in_array($parameter, $types)) {
@@ -650,7 +650,7 @@ private function replaceNullValues($parameters, $types, &$example)
650650
}
651651
}
652652

653-
private function getDefaultValueByType($type)
653+
protected function getDefaultValueByType($type)
654654
{
655655
$values = [
656656
'object' => 'null',

0 commit comments

Comments
 (0)