Skip to content

Commit

Permalink
Update Embedded3DViewer.php
Browse files Browse the repository at this point in the history
improve types
  • Loading branch information
markusweigelt committed Jun 26, 2024
1 parent 3d3dcaf commit 76779d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Middleware/Embedded3DViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ private function getViewerByExtensionConfiguration($modelFormat): string
* @param string $viewerUrl
* @param string $html
* @param $model
* @param array|string $modelInfo
* @return array|string|string[]
* @param array $modelInfo
* @return string
*/
public function replacePlaceholders(string $viewerUrl, string $html, $model, array|string $modelInfo): string|array
public function replacePlaceholders(string $viewerUrl, string $html, $model, array $modelInfo): string
{
$html = str_replace("{{viewerPath}}", $viewerUrl, $html);
$html = str_replace("{{modelUrl}}", $model, $html);
Expand Down

0 comments on commit 76779d9

Please sign in to comment.