Skip to content

Commit

Permalink
return
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPurvis committed Jan 29, 2024
1 parent 6059a3c commit 769b9a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Console/Commands/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,17 @@ protected function getArguments(): array
/**
* Returns the namespace without the default Saloon parts
*
* @return string
*/
protected function getFormattedNamespace()
protected function getFormattedNamespace(): array|string

Check failure on line 93 in src/Console/Commands/MakeCommand.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Saloon\Laravel\Console\Commands\MakeCommand::getFormattedNamespace() return type has no value type specified in iterable type array.
{
return str_replace('\\Http\\Integrations', '', $this->namespace);
}

/**
* Converts the integrations path to a namespace friendly string
*
* @return string
*/
protected function getNamespaceFromIntegrationsPath()
protected function getNamespaceFromIntegrationsPath(): array|string

Check failure on line 102 in src/Console/Commands/MakeCommand.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Saloon\Laravel\Console\Commands\MakeCommand::getNamespaceFromIntegrationsPath() return type has no value type specified in iterable type array.
{
return str_replace(['\\App', '\\app'], '', str_replace("/", "\\", str_replace(base_path(), '', config('saloon.integrations_path'))));
}
Expand Down

0 comments on commit 769b9a6

Please sign in to comment.