Skip to content

Commit

Permalink
laravel 11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquentize committed Mar 15, 2024
1 parent 97d23e3 commit ce562c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"php": "^8.0",
"guzzlehttp/guzzle": "^6.0 | ^7.0",
"illuminate/contracts": "^8.0 | ^9.0 | ^10.0 | ^11.0",
"nesbot/carbon": "^2.0",
"nesbot/carbon": "^2.0 | ^3.0",
"spatie/laravel-package-tools": "^1.0 | ^1.14.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class BaseCommand extends Command

public $defaultDateFormat = 'd/m/Y';

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output) : int
{
if (env('ELOQUENTIZE_API_TOKEN') === null) {
throw new \Exception('ELOQUENTIZE_API_TOKEN is not set in .env');
Expand All @@ -31,7 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
return parent::execute($input, $output);
}

protected function cleanAppUrl($url)
protected function cleanAppUrl($url) : string
{
$url = preg_replace('#^https?://#', '', $url);
$url = preg_replace('#^http?://#', '', $url);
Expand Down

0 comments on commit ce562c7

Please sign in to comment.